fix(apps/installer): windows setup (#23007)
This commit is contained in:
@@ -1,7 +1,11 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Set SUDO variable - one liner
|
# Set SUDO variable - one liner
|
||||||
SUDO=$([ "$EUID" -ne 0 ] && echo "sudo" || echo "")
|
if [[ "$OSTYPE" == "msys"* ]]; then
|
||||||
|
SUDO=""
|
||||||
|
else
|
||||||
|
SUDO=$([ "$EUID" -ne 0 ] && echo "sudo" || echo "")
|
||||||
|
fi
|
||||||
|
|
||||||
function inst_configureOS() {
|
function inst_configureOS() {
|
||||||
echo "Platform: $OSTYPE"
|
echo "Platform: $OSTYPE"
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ menu_items=(
|
|||||||
"install-deps|d|Configure OS dep"
|
"install-deps|d|Configure OS dep"
|
||||||
"pull|u|Update Repository"
|
"pull|u|Update Repository"
|
||||||
"reset|r|Reset & Clean Repository"
|
"reset|r|Reset & Clean Repository"
|
||||||
|
"setup-db|r|Install db only"
|
||||||
"compiler|c|Run compiler tool"
|
"compiler|c|Run compiler tool"
|
||||||
"module|m|Module manager (search/install/update/remove)"
|
"module|m|Module manager (search/install/update/remove)"
|
||||||
"client-data|gd|download client data from github repository (beta)"
|
"client-data|gd|download client data from github repository (beta)"
|
||||||
@@ -65,6 +66,9 @@ function handle_menu_command() {
|
|||||||
"reset")
|
"reset")
|
||||||
inst_resetRepo
|
inst_resetRepo
|
||||||
;;
|
;;
|
||||||
|
"setup-db")
|
||||||
|
inst_dbCreate
|
||||||
|
;;
|
||||||
"compiler")
|
"compiler")
|
||||||
bash "$AC_PATH_APPS/compiler/compiler.sh" "$@"
|
bash "$AC_PATH_APPS/compiler/compiler.sh" "$@"
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user