From 2c3b5056ae18d75e1b8d7da417ae73b7aaf143c9 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Tue, 14 Oct 2025 12:52:07 -0700 Subject: [PATCH] Use a single echo command to announce the program's run. --- cronjob.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cronjob.sh b/cronjob.sh index 1731b83..e1b2c9e 100755 --- a/cronjob.sh +++ b/cronjob.sh @@ -6,17 +6,16 @@ DIR="$(dirname -- "${BASH_SOURCE[0]}")" PROG="$(basename -- "${BASH_SOURCE[0]}")" -echo "$DIR/$PROG" function reload-project { ## Kill node.js which will complete run.sh and restart any Docker containers. #pkill node # Do not kill program, just use the new files and if run.sh or main.js were # changed then they can get reloaded manually or by the nightly backup. - echo "Done!" + echo "Project reloaded successfully!" } -echo "*** Running cronjob @ `date` ***" +echo "*** Running '$DIR/$PROG' @ `date` ***" cd $DIR # Pull any updates, and if the project is already up to date, exit successfully.