mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-06-30 18:15:11 +00:00
fix script
This commit is contained in:
parent
31d98fc368
commit
72eab9e84d
@ -17,6 +17,8 @@ let TIMEOUT = 1000;
|
||||
|
||||
async function main() {
|
||||
|
||||
console.log('---START---');
|
||||
|
||||
program
|
||||
.version('0.1.0')
|
||||
.option('--host [type]', 'Remote environment host adf.lab.com ')
|
||||
@ -44,6 +46,8 @@ async function main() {
|
||||
|
||||
host = program.host;
|
||||
|
||||
console.log('---Login---');
|
||||
|
||||
try {
|
||||
this.alfrescoJsApi = new alfrescoApi.AlfrescoApiCompatibility(config);
|
||||
await this.alfrescoJsApi.login(program.username, program.password);
|
||||
@ -51,6 +55,9 @@ async function main() {
|
||||
console.log('Login error' + e);
|
||||
}
|
||||
|
||||
console.log('---Login ok---');
|
||||
|
||||
|
||||
await deployAbsentApps(this.alfrescoJsApi);
|
||||
|
||||
let pushFailed = await getPushFailedApps(this.alfrescoJsApi);
|
||||
|
@ -7,7 +7,7 @@ TEMP_GENERATOR_DIR=".tmp-generator";
|
||||
VERSION=$(npm view @alfresco/adf-core@beta version)
|
||||
|
||||
show_help() {
|
||||
echo "Usage: update-generator.sh"
|
||||
echo "Usage: update-project.sh"
|
||||
echo ""
|
||||
echo "-t or --token Github ouath token"
|
||||
echo "-n or --name Github name of the project"
|
||||
@ -43,7 +43,7 @@ git clone https://$TOKEN@github.com/$NAME_REPO.git $TEMP_GENERATOR_DIR
|
||||
cd $TEMP_GENERATOR_DIR
|
||||
git checkout development
|
||||
|
||||
BRANCH="generator-update-beta-$VERSION"
|
||||
BRANCH="ADF-update-beta-$VERSION"
|
||||
git checkout -b $BRANCH
|
||||
|
||||
if $GNU; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user