fix script

This commit is contained in:
Eugenio Romano 2019-06-25 13:00:05 +01:00
parent 31d98fc368
commit 72eab9e84d
2 changed files with 9 additions and 2 deletions

View File

@ -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);

View File

@ -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