diff options
author | Yehonal <yehonal.azeroth@gmail.com> | 2017-09-25 18:15:47 +0200 |
---|---|---|
committer | Yehonal <yehonal.azeroth@gmail.com> | 2017-09-25 18:15:47 +0200 |
commit | 69b7d771619c67b99419ee6797a83c24391b9c06 (patch) | |
tree | 121e59427c70857fe75558fd1e51512399818da3 /bin/installer/includes/functions.sh | |
parent | 0a03149432a969cbd7aa4904b64accfe6f88cb99 (diff) |
Bash: Minor fixes for installer
Diffstat (limited to 'bin/installer/includes/functions.sh')
-rw-r--r-- | bin/installer/includes/functions.sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/installer/includes/functions.sh b/bin/installer/includes/functions.sh index a6f8c84101..3aa0b6baf2 100644 --- a/bin/installer/includes/functions.sh +++ b/bin/installer/includes/functions.sh @@ -24,10 +24,12 @@ function inst_configureOS() { } function inst_updateRepo() { + cd "$AC_PATH_ROOT" git pull origin $(git rev-parse --abbrev-ref HEAD) } function inst_resetRepo() { + cd "$AC_PATH_ROOT" git reset --hard $(git rev-parse --abbrev-ref HEAD) git clean -f } @@ -78,7 +80,7 @@ function inst_module_install { read -p "Insert name: " res fi - git clone "https://github.com/azerothcore/$res" "modules/$res" && echo "Done, please re-run compiling and db assembly. Read instruction on module repository for more information" + git clone "https://github.com/azerothcore/$res" "$AC_PATH_ROOT/modules/$res" && echo "Done, please re-run compiling and db assembly. Read instruction on module repository for more information" echo ""; echo ""; @@ -90,7 +92,7 @@ function inst_module_update { read -p "Insert name: " res fi - cd "modules/$res" + cd "$AC_PATH_ROOT/modules/$res" #git reset --hard master #git clean -f @@ -108,7 +110,7 @@ function inst_module_remove { read -p "Insert name: " res fi - rm -rf "modules/$res" && echo "Done" + rm -rf "$AC_PATH_ROOT/modules/$res" && echo "Done" echo ""; echo ""; |