Oops, left notify-send instead of echo
This commit is contained in:
parent
c1c49aa7d3
commit
fc5c034716
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue