gui: fix checking for motd timestamp

pull/734/merge
Botspot 4 years ago
parent af608783ff
commit 37e666034e

6
gui

@ -169,9 +169,9 @@ uninstall() {
} }
if [ ! -f "${DIRECTORY}/data/announcements" ] || [ -z $(find "${DIRECTORY}/data/announcements" -mtime +1 -print) ]; then if [ ! -f "${DIRECTORY}/data/announcements" ] || [ ! -z "$(find "${DIRECTORY}/data/announcements" -mtime +1 -print)" ]; then
motd="$(wget -qO- https://raw.githubusercontent.com/Botspot/pi-apps-announcements/main/message)" wget https://raw.githubusercontent.com/Botspot/pi-apps-announcements/main/message -O "${DIRECTORY}/data/announcements"
echo "$motd" > "${DIRECTORY}/data/announcements" motd="$(cat "${DIRECTORY}/data/announcements")"
else else
motd="$(cat "${DIRECTORY}/data/announcements")" motd="$(cat "${DIRECTORY}/data/announcements")"
fi fi

Loading…
Cancel
Save