diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2023-07-18 18:26:31 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2023-07-18 18:26:31 -0300 |
commit | c764b10fe91b85bfe6342592c4f8fc835892115e (patch) | |
tree | 00224c9ea75aa5147f7f8b45e495d08f2a30e06d | |
parent | 8f07b9dbc5bd4a8c5bfd1deb8c9b10b4b2106eb9 (diff) | |
download | hydra-c764b10fe91b85bfe6342592c4f8fc835892115e.tar.gz hydra-c764b10fe91b85bfe6342592c4f8fc835892115e.tar.bz2 |
Fix: sync-media: filter out added files when adding hidden files
-rwxr-xr-x | share/hydractl/sync-media | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/hydractl/sync-media b/share/hydractl/sync-media index bff3987..4f40a67 100755 --- a/share/hydractl/sync-media +++ b/share/hydractl/sync-media @@ -41,7 +41,7 @@ function sync_media_add { fi # Adding hidden files and symlinks, git+while version - git status --porcelain -u | sed -e 's/?? //' | while read file; do + git status --porcelain -u | grep '^?? ' | sed -e 's/?? //' | while read file; do if [ -h "$file" ]; then git add "$file" else |