improve updater

pull/94/head
Botspot 4 years ago
parent b882668cba
commit f5b6c38602

@ -301,6 +301,9 @@ elif [ "$1" == 'update-all' ];then
PREIFS="$IFS"
IFS='|'
updatable="$("${DIRECTORY}/manage" check-all | tail -1)"
if [ "$updatable" == '.' ];then
updatable=''
fi
echo "Updatable: ${updatable}EOU"
for updateapp in $updatable
do

@ -38,11 +38,15 @@ else
echo "Warning: Unrecognized update interval!"
fi
#fix for new years day
if [ "$lastupdatecheck" -gt "$(date +%j)" ];then
nocheck=0
fi
#hidden flag: if $1 is 'onboot', then check for updates only for those apps that are installed.
onboot="$1"
if [ "$onboot" == 'onboot' ] || [ "$onboot" == 'installedonly' ];then
onboot='onboot'
nocheck=0 #forcibly check, even if time interval doesn't call for it
sleep 1m #wait a minute, this is so the system will have booted all the way for an internet connection
fi

Loading…
Cancel
Save