aboutsummaryrefslogtreecommitdiff
path: root/ssync-queue
diff options
context:
space:
mode:
authorSteph Enders <steph@senders.io>2025-12-14 23:21:44 -0500
committerSteph Enders <steph@senders.io>2025-12-14 23:23:54 -0500
commit6101cdd2d70a4bb3e9c529ef484ddccbb48b8fd1 (patch)
tree831c8193a5fd8c1b6cb08c2bf62e366eda9ad516 /ssync-queue
parent230bb634388c41426e2cd32ba411188b38ddcb5b (diff)
Restrit the queue grep to just plaintext
Hit a bug where a filename had what was considered valid regex and I don't know the best way right now to represent it as I would want while still regex. So simplified
Diffstat (limited to 'ssync-queue')
-rwxr-xr-xssync-queue2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssync-queue b/ssync-queue
index 2063420..25fa1cd 100755
--- a/ssync-queue
+++ b/ssync-queue
@@ -100,6 +100,6 @@ comm -23 $remote_sorted $local_sorted > $remote_only_filenames_file
verbose_log "Found $(lines $remote_only_filenames_file) remote only files"
# push matching files into queue
-cat $remote_only_filenames_file | xargs -I{} grep "^.*{}$" $REMOTE_FILE_ARG >> $QUEUE_FILE_ARG
+cat $remote_only_filenames_file | xargs -I{} grep -F "{}" $REMOTE_FILE_ARG >> $QUEUE_FILE_ARG
verbose_log "Added $(lines $QUEUE_FILE_ARG) to the queue"