From fc5c0347161afee3c23c322f8d7ab7e71c2f7e0f Mon Sep 17 00:00:00 2001 From: Siina Mashek Date: Mon, 22 Apr 2024 06:49:46 +0300 Subject: [PATCH] Oops, left notify-send instead of echo --- apsalar/nc-sync | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apsalar/nc-sync b/apsalar/nc-sync index eea0a2d..d9bce02 100755 --- a/apsalar/nc-sync +++ b/apsalar/nc-sync @@ -3,7 +3,7 @@ ( if flock -n 9 then - notify-send 'Not doing the critical operation (lock present).' + echo 'Lock present, exiting' exit; fi @@ -13,9 +13,9 @@ NC_DIR="/home/siina/Nextcloud" NC_URL="https://cloud.criminallycute.fi" - notify-send "Nextcloud Sync Syncing ..." + echo "Nextcloud Sync Syncing ..." nextcloudcmd -u $NC_USER -p $NC_PASS $NC_DIR $NC_URL - notify-send "Nextcloud Sync Done syncing" + echo "Nextcloud Sync Done syncing" ) 9>'/tmp/nc-sync.lock' rm -f '/tmp/nc-sync.lock'