File tree 2 files changed +13
-18
lines changed
2 files changed +13
-18
lines changed Original file line number Diff line number Diff line change 38
38
fi
39
39
40
40
# Get install files
41
- git clone --quiet https://github.com/infinum/app-deploy-script.git --branch feature/v2/help-readme .app_deploy_tmp
41
+ git clone --quiet https://github.com/infinum/app-deploy-script.git .app_deploy_tmp
42
42
echo " Installing..."
43
43
44
44
# Move main script to bin folder
Original file line number Diff line number Diff line change @@ -13,28 +13,23 @@ function __script_auto_update {
13
13
echo " Fetching new data..."
14
14
15
15
# Create temp folder
16
- # if [ ! -d ".app_deploy_tmp" ]; then
17
- # mkdir .app_deploy_tmp
18
- # else
19
- # rm -rf .app_deploy_tmp
20
- # fi
16
+ if [ ! -d " .app_deploy_tmp" ]; then
17
+ mkdir .app_deploy_tmp
18
+ else
19
+ rm -rf .app_deploy_tmp
20
+ fi
21
21
22
22
# Get new data
23
- # git clone --quiet https://github.com/infinum/app-deploy-script.git --branch feature/v2/local-trigger .app_deploy_tmp
24
- # echo "Updating..."
23
+ git clone --quiet https://github.com/infinum/app-deploy-script.git .app_deploy_tmp
24
+ echo " Updating..."
25
25
26
- # # Move new data to bin / helpers
27
- # cat .app_deploy_tmp/app-deploy.sh > /usr/local/bin/app-deploy
28
- # cp -a .app_deploy_tmp/sources/. /usr/local/bin/.app-deploy-sources/
29
-
30
- # LOCAL DEVELOPMENT
31
- # Comment when not in use
32
- cat /Users/jaco/Infinum/Infinum_projects/AppDeployScript/app-deploy-script/app-deploy.sh > /usr/local/bin/app-deploy
33
- cp -a /Users/jaco/Infinum/Infinum_projects/AppDeployScript/app-deploy-script/sources/. /usr/local/bin/.app-deploy-sources/
26
+ # Move new data to bin / helpers
27
+ cat .app_deploy_tmp/app-deploy.sh > /usr/local/bin/app-deploy
28
+ cp -a .app_deploy_tmp/sources/. /usr/local/bin/.app-deploy-sources/
34
29
35
30
# Remove temp folder
36
- # rm -rf .app_deploy_tmp
31
+ rm -rf .app_deploy_tmp
37
32
38
- echo " Updating finished !"
33
+ echo " Updated to $VERSION !"
39
34
exit 0
40
35
}
You can’t perform that action at this time.
0 commit comments