From 22aef4782d5f13114bfa5449ec5dcfa3672dc511 Mon Sep 17 00:00:00 2001 From: Chris Grieser <73286100+chrisgrieser@users.noreply.github.com> Date: Tue, 17 Sep 2024 16:35:57 +0200 Subject: [PATCH] fix: rsync commands --- Justfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Justfile b/Justfile index 9d4150c..c99d776 100644 --- a/Justfile +++ b/Justfile @@ -3,7 +3,7 @@ set quiet := true transfer-changes-FROM-local: #!/usr/bin/env zsh workflow_id=$(basename "$PWD") - prefs_location=$(grep "5" "$HOME/Library/Application Support/Alfred/prefs.json" | cut -d'"' -f4 | sed -e 's|\\/|/|g' -e "s|^~|$HOME|") + prefs_location=$(grep '"5"' "$HOME/Library/Application Support/Alfred/prefs.json" | cut -d'"' -f4 | sed -e 's|\\/|/|g' -e "s|^~|$HOME|") local_workflow="$prefs_location/Alfred.alfredpreferences/workflows/$workflow_id" rsync --archive --delete --exclude-from="$PWD/.rsync-exclude" "$local_workflow/" "$PWD" git status --short @@ -11,7 +11,7 @@ transfer-changes-FROM-local: transfer-changes-TO-local: #!/usr/bin/env zsh workflow_id=$(basename "$PWD") - prefs_location=$(grep "5" "$HOME/Library/Application Support/Alfred/prefs.json" | cut -d'"' -f4 | sed -e 's|\\/|/|g' -e "s|^~|$HOME|") + prefs_location=$(grep '"5"' "$HOME/Library/Application Support/Alfred/prefs.json" | cut -d'"' -f4 | sed -e 's|\\/|/|g' -e "s|^~|$HOME|") local_workflow="$prefs_location/Alfred.alfredpreferences/workflows/$workflow_id" rsync --archive --delete --exclude-from="$PWD/.rsync-exclude" "$PWD/" "$local_workflow"