Browse Source

command only listed on install

pull/3568/head
Daniel Gibbs 4 years ago
parent
commit
1434810235
  1. 20
      lgsm/functions/check_deps.sh

20
lgsm/functions/check_deps.sh

@ -193,15 +193,17 @@ fn_found_missing_deps(){
fn_script_log_pass "Install dependencies completed." fn_script_log_pass "Install dependencies completed."
fi fi
else else
fn_print_warning_nl "$(whoami) does not have sudo access. Manually install dependencies." if [ "${commandname}" == "INSTALL" ]; then
fn_script_log_warn "$(whoami) does not have sudo access. Manually install dependencies." fn_print_warning_nl "$(whoami) does not have sudo access. Manually install dependencies."
echo -e "" fn_script_log_warn "$(whoami) does not have sudo access. Manually install dependencies."
if [ "$(command -v dpkg-query 2>/dev/null)" ]; then echo -e ""
echo -e "sudo dpkg --add-architecture i386; sudo apt update; sudo apt install ${array_deps_missing[*]}" if [ "$(command -v dpkg-query 2>/dev/null)" ]; then
elif [ "$(command -v dnf 2>/dev/null)" ]; then echo -e "sudo dpkg --add-architecture i386; sudo apt update; sudo apt install ${array_deps_missing[*]}"
echo -e "sudo dnf install ${array_deps_missing[*]}" elif [ "$(command -v dnf 2>/dev/null)" ]; then
elif [ "$(command -v yum 2>/dev/null)" ]; then echo -e "sudo dnf install ${array_deps_missing[*]}"
echo -e "sudo yum install ${array_deps_missing[*]}" elif [ "$(command -v yum 2>/dev/null)" ]; then
echo -e "sudo yum install ${array_deps_missing[*]}"
fi
fi fi
if [ "${steamcmdfail}" ]; then if [ "${steamcmdfail}" ]; then
echo -e "" echo -e ""

Loading…
Cancel
Save