Skip to content

Commit

Permalink
fix: rsync commands
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgrieser committed Sep 17, 2024
1 parent be08c61 commit 22aef47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ 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
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"
Expand Down

0 comments on commit 22aef47

Please sign in to comment.