From 0ac0180da48eb7d53fc1cf16a3f08ce36858eb1d Mon Sep 17 00:00:00 2001 From: Shant Tchatalbachian <10482171+0mniteck@users.noreply.github.com> Date: Thu, 5 Sep 2024 12:57:00 -0700 Subject: [PATCH] Update auto-update-cron.sh --- auto-update-cron.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/auto-update-cron.sh b/auto-update-cron.sh index b418813..70573ed 100644 --- a/auto-update-cron.sh +++ b/auto-update-cron.sh @@ -86,13 +86,10 @@ else echo "Signal Desktop is already up to date (version $current_version)" fi -# Define the cron job command -cron_job="0 2 * * * root /usr/bin/sd-updater" - # Check if the cron job already exists if [ ! -f /etc/cron.d/sd-updater ]; then - cat $cron_job > /etc/cron.d/sd-updater - echo "Cron job added: $cron_job" + cat "0 2 * * * root /usr/bin/sd-updater" > /etc/cron.d/sd-updater + echo "Cron job added." else echo "Cron job already exists." fi