]> gitweb.fluxo.info Git - hydra.git/commitdiff
Fix: hydractl: sync-media: do not depend on git-extras package
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 28 Sep 2025 10:43:34 +0000 (07:43 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 28 Sep 2025 10:43:34 +0000 (07:43 -0300)
share/hydractl/sync-media

index 14eb1a6832f8d8a68f8849cf21b62982349d7171..2373413c1432cfbb69bc1c00272872eae9155c59 100755 (executable)
@@ -62,7 +62,11 @@ function sync_media_check_lockfile {
   local pid process
 
   if [ ! -e ".gitignore" ] || ! grep -q "$LOCK" .gitignore; then
-    git ignore $LOCK
+    # With git-ignore from git-extras package
+    #git ignore $LOCK
+
+    # Without git-ignore from git-extras package
+    echo "$LOCK" >> .gitignore
   fi
 
   if [ ! -z "$LOCKFILE" ] && [ -f "$LOCKFILE" ]; then