aboutsummaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/install.sh b/install.sh
index b434cef..6255de0 100755
--- a/install.sh
+++ b/install.sh
@@ -58,6 +58,16 @@ checkPkgManager(){
}
checkPkgManager
+sudoBin="sudo"
+checkIfSudoAvailable(){
+ which sudo
+ if [ $? -ne 0 ]
+ then
+ sudoBin=""
+ fi
+}
+checkIfSudoAvailable
+
# Depedencies check and install
declare -a depedencies=("curl" "wget" "bash" "jq" "nodejs" "npm" "gpg" "git")
for dep in "${depedencies[@]}"