lots: shellcheck, streaming stuff, fixes
[distro-setup] / gitslink
index e4b39dc56c6e856a74a999fdaaf703d10e0c57da..0616fe7e561825c7c3080e6e97c852ed62231a56 100755 (executable)
--- a/gitslink
+++ b/gitslink
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-source /a/bin/errhandle/err
+source /a/bin/bash-bear-trap/bash-bear
 
 e() { echo "$*"; "$@"; }
 lnf() { /a/bin/lnf/lnf "$@"; }
@@ -20,7 +20,7 @@ source /a/bin/lnf/lnf >/dev/null ||:
 
 for x in !(unused|distro-setup|unfinished|queue|bash-template|buildscripts|crons|data|examples|log-quiet); do
   [[ -e $x/.git ]] || continue
-  for y in $x/*; do
+  for y in "$x"/*; do
     f=${y##*/}
     if [[ -x $y && ! -d $y ]]; then
       unset "existing[$f]"