manage: re-enable update-status file writing

pull/948/merge
Botspot 4 years ago
parent 39783ffd37
commit 0f98e20e45

@ -341,23 +341,23 @@ elif [ "$1" == 'check-all' ];then
if [ "$newhash" == "$oldhash" ];then if [ "$newhash" == "$oldhash" ];then
#echo -e "${app} is identical\e[90m to the online version. Nothing to do!\e[39m" 1>&2 #echo -e "${app} is identical\e[90m to the online version. Nothing to do!\e[39m" 1>&2
#echo 'latest' > "${DIRECTORY}/data/update-status/${app}" echo 'latest' > "${DIRECTORY}/data/update-status/${app}"
true true
else else
if [ ! -d "${DIRECTORY}/apps/${app}" ];then if [ ! -d "${DIRECTORY}/apps/${app}" ];then
#echo -e "\e[97m${app} does not exist locally.\e[39m Adding to updatable list." 1>&2 #echo -e "\e[97m${app} does not exist locally.\e[39m Adding to updatable list." 1>&2
#echo 'new' > "${DIRECTORY}/data/update-status/${app}" echo 'new' > "${DIRECTORY}/data/update-status/${app}"
#in this case, add to updatable list #in this case, add to updatable list
updatable="${updatable} updatable="${updatable}
${app}" ${app}"
elif [ ! -d "${DIRECTORY}/update/pi-apps/apps/${app}" ];then elif [ ! -d "${DIRECTORY}/update/pi-apps/apps/${app}" ];then
#echo -e "\e[97m${app} only exists locally.\e[39m Will not add to updatable list." 1>&2 #echo -e "\e[97m${app} only exists locally.\e[39m Will not add to updatable list." 1>&2
#echo 'local' > "${DIRECTORY}/data/update-status/${app}" echo 'local' > "${DIRECTORY}/data/update-status/${app}"
true true
#in this case, do not add to updatable list #in this case, do not add to updatable list
else else
#echo -e "\e[97m${app} exists in both locations, but online version is newer\e[39m. Adding to updatable list." 1>&2 #echo -e "\e[97m${app} exists in both locations, but online version is newer\e[39m. Adding to updatable list." 1>&2
#echo 'updatable' > "${DIRECTORY}/data/update-status/${app}" echo 'updatable' > "${DIRECTORY}/data/update-status/${app}"
#in this case, add to updatable list #in this case, add to updatable list
updatable="${updatable} updatable="${updatable}
${app}" ${app}"

Loading…
Cancel
Save