diff options
Diffstat (limited to 'install.sh')
-rwxr-xr-x | install.sh | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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[@]}" |