Refactor shell scripts

This commit is contained in:
Markus Lorenz
2023-11-15 14:35:34 +01:00
parent 1e75eeab4c
commit 0bd985282f
2 changed files with 32 additions and 22 deletions

View File

@@ -27,8 +27,8 @@ rm -R $INSTALL_DIR/pialert
git clone https://github.com/jokob-sk/Pi.Alert "$INSTALL_DIR/pialert"
# Check for buildtimestamp.txt existence, otherwise create it
if [ ! -f /home/pi/pialert/front/buildtimestamp.txt ]; then
date +%s > /home/pi/pialert/front/buildtimestamp.txt
if [ ! -f $INSTALL_DIR/pialert/front/buildtimestamp.txt ]; then
date +%s > $INSTALL_DIR/pialert/front/buildtimestamp.txt
fi
# Start PiAlert