From 83a1332f91b15c12023610823b376dee8ab65298 Mon Sep 17 00:00:00 2001 From: Siina Mashek Date: Mon, 14 Oct 2024 10:48:11 +0300 Subject: [PATCH] changing icloud dir to be environment variable --- apsalar/icloudsync | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apsalar/icloudsync b/apsalar/icloudsync index e32e982..8938836 100755 --- a/apsalar/icloudsync +++ b/apsalar/icloudsync @@ -28,7 +28,7 @@ check_session () { start_sync () { if check_session 0; then tmux new-session -d -s $session - tmux send-keys -t $session 'icloudpd --directory=$HOME/Pictures --username $ICLOUD_USERNAME --watch-with-interval 3600' C-m + tmux send-keys -t $session 'icloudpd --directory=$ICLOUD_DIR --username $ICLOUD_USERNAME --watch-with-interval 3600' C-m echo started else echo already active