From 623bc615bd9c4b966ca95047845870f15c9042d4 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sat, 4 Sep 2021 23:03:27 +0100 Subject: [PATCH] add missing dep menu --- lgsm/functions/check_deps.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/lgsm/functions/check_deps.sh b/lgsm/functions/check_deps.sh index c0d124c06..10fc8a089 100755 --- a/lgsm/functions/check_deps.sh +++ b/lgsm/functions/check_deps.sh @@ -304,6 +304,21 @@ fn_deps_detector(){ fi } +if [ "${commandname}" == "INSTALL" ]; then + if [ "$(whoami)" == "root" ]; then + echo -e "" + echo -e "${lightyellow}Checking Dependencies as root${default}" + echo -e "=================================" + fn_print_information_nl "Checking any missing dependencies for ${gamename} server only." + fn_print_information_nl "This will NOT install a ${gamename} server." + fn_sleep_time + else + echo -e "" + echo -e "${lightyellow}Checking Dependencies${default}" + echo -e "=================================" + fi +fi + info_distro.sh if [ ! -f "${tmpdir}/dependency-no-check.tmp" ]&&[ ! -f "${datadir}/${distroid}-${distroversion}.csv" ]; then