changing icloud dir to be environment variable

This commit is contained in:
Siina Mashek 2024-10-14 10:48:11 +03:00
parent 131232c5cf
commit 83a1332f91

View File

@ -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