From 0dbeb0789cdac77f1d685630f66b0bc609ee3d0e Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sat, 27 Feb 2016 19:36:49 +0000 Subject: [PATCH] Added script logging and removed unzip dep --- functions/check_deps.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/functions/check_deps.sh b/functions/check_deps.sh index 3f9312024..d562369a8 100644 --- a/functions/check_deps.sh +++ b/functions/check_deps.sh @@ -53,6 +53,7 @@ if [ "${#array_deps_missing[@]}" != "0" ]; then fn_printdots "Checking dependencies" sleep 2 fn_printwarn "Checking dependencies: Dependency missing: \e[0;31m${array_deps_missing[@]}\e[0m" + fn_scriptlog "Checking dependencies: Dependency missing: \e[0;31m${array_deps_missing[@]}\e[0m" sleep 1 echo -e "" sudo -n true > /dev/null 2>&1 @@ -73,6 +74,7 @@ if [ "${#array_deps_missing[@]}" != "0" ]; then else echo "" fn_printinfomationnl "$(whoami) does not have sudo access. manually install dependencies" + fn_scriptlog "$(whoami) does not have sudo access. manually install dependencies" echo "" if [ -n "$(command -v dpkg-query)" ]; then echo "sudo dpkg --add-architecture i386; sudo apt-get install ${array_deps_missing[@]}" @@ -147,7 +149,7 @@ if [ -n "$(command -v dpkg-query)" ]; then elif [ "${executable}" == "./ucc-bin" ]; then #UT2K4 if [ -f "${executabledir}/ut2004-bin" ]; then - array_deps_required+=( libsdl1.2debian libstdc++5:i386 bzip2 unzip ) + array_deps_required+=( libsdl1.2debian libstdc++5:i386 bzip2 ) #UT99 else array_deps_required+=( libsdl1.2debian bzip2 ) @@ -193,7 +195,7 @@ elif [ -n "$(command -v yum)" ]; then elif [ "${executable}" == "./ucc-bin" ]; then #UT2K4 if [ -f "${executabledir}/ut2004-bin" ]; then - array_deps_required+=( compat-libstdc++-33.i686 SDL.i686 bzip2 unzip ) + array_deps_required+=( compat-libstdc++-33.i686 SDL.i686 bzip2 ) #UT99 else array_deps_required+=( SDL.i686 bzip2 )