Update mm-scripts.sh
This commit is contained in:
@@ -937,7 +937,11 @@ UPDATESERVICE(){
|
||||
fi
|
||||
|
||||
elif [ "${MM_UPDATE_REPO[${usrvc}]}" == "systemd" ]; then
|
||||
msg="Checking for update"; c=0; spc=''; spc1=$((${cw_spc}-${#msg})); until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
|
||||
echo -en "${idsCL[White]}${msg}${spc} : ${idsCL[Default]}"
|
||||
|
||||
if [ "$(apt-get -s upgrade | grep ${usrvc})" != "" ] || [ "${2}" == "force" ]; then
|
||||
echo -e "${idsCL[Green]}Done${idsCL[Default]}"
|
||||
msg="Updating service"; c=0; spc=''; spc1=$((${cw_spc}-${#msg})); until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
|
||||
echo -en "${idsCL[White]}${msg}${spc} : ${idsCL[Default]}"
|
||||
installed_ver=`dpkg -s ${usrvc} | grep Version`
|
||||
@@ -946,7 +950,7 @@ UPDATESERVICE(){
|
||||
echo -e "${idsCL[Green]}Done${idsCL[Default]}"
|
||||
|
||||
else
|
||||
echo -e " ${idsCL[LightCyan]} Update Not Needed ${idsCL[Default]}"
|
||||
echo -e "${idsCL[LightCyan]}Update Not Needed${idsCL[Default]}"
|
||||
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user