aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2023-07-18 18:26:31 -0300
committerSilvio Rhatto <rhatto@riseup.net>2023-07-18 18:26:31 -0300
commitc764b10fe91b85bfe6342592c4f8fc835892115e (patch)
tree00224c9ea75aa5147f7f8b45e495d08f2a30e06d
parent8f07b9dbc5bd4a8c5bfd1deb8c9b10b4b2106eb9 (diff)
downloadhydra-c764b10fe91b85bfe6342592c4f8fc835892115e.tar.gz
hydra-c764b10fe91b85bfe6342592c4f8fc835892115e.tar.bz2
Fix: sync-media: filter out added files when adding hidden files
-rwxr-xr-xshare/hydractl/sync-media2
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