@@ -70,7 +70,7 @@ function ee_lib_error()
7070function ee_lib_package_check()
7171{
7272 local ee_package
73-
73+
7474 for ee_package in $@ ; do
7575 dpkg --get-selections | grep -v deinstall | grep $ee_package & >> $EE_INSTALL_LOG
7676
@@ -87,7 +87,7 @@ function ee_lib_package_check()
8787if [ ! -d $EE_LOG_DIR ]; then
8888 ee_lib_echo " Creating EasyEngine (ee) log directory, please wait..."
8989 mkdir -p $EE_LOG_DIR || ee_lib_error " Unable to create log directory $EE_LOG_DIR , exit status = " $?
90-
90+
9191 # Create EasyEngine log files
9292 touch /var/log/easyengine/{ee.log,install.log,update.log,error.log} \
9393 || ee_lib_error " Unable to create EasyEngine log files in $EE_LOG_DIR , exit status = " $?
@@ -105,9 +105,9 @@ elif [ "$EE_LINUX_DISTRO" == "Debian" ]; then
105105 ee_lib_package_check graphviz python-software-properties
106106fi
107107
108- if [ ! -x /usr/bin/tee ] || [ ! -x /bin/ed ] || [ ! -x /usr/bin/bc ] || [ ! -x /usr/bin/wget ] || [ ! -x /usr/bin/curl ] || [ ! -x /bin/tar ] || [ ! -x /usr/bin/git ] || [ -n " $EE_PACKAGE_NAME " ]; then
108+ if [ ! -x /usr/bin/tee ] || [ ! -x /bin/ed ] || [ ! -x /usr/bin/bc ] || [ ! -x /usr/bin/wget ] || [ ! -x /usr/bin/curl ] || [ ! -x /bin/tar ] || [ ! -x /usr/bin/git ] || [ ! -x /usr/bin/sudo ] || [ -n " $EE_PACKAGE_NAME " ]; then
109109 ee_lib_echo " Installing required packages, please wait..." | tee -ai $EE_INSTALL_LOG
110- apt-get -y install coreutils ed bc wget curl tar git-core $EE_PACKAGE_NAME | tee -ai $EE_INSTALL_LOG \
110+ apt-get -y install coreutils ed bc wget curl tar git-core sudo $EE_PACKAGE_NAME | tee -ai $EE_INSTALL_LOG \
111111 || ee_lib_error " Unable to install required packages, exit status = " $?
112112fi
113113
130130 fi
131131fi
132132
133- # Remove old version of EasyEngine (ee)
133+ # Remove old version of EasyEngine (ee)
134134rm -rf /tmp/easyengine & >> /dev/null
135135
136136# Let's clone EasyEngine (ee)
0 commit comments