Browse Source

Avoid nullglob

bryan 2 years ago
parent
commit
1f484d8bfc
1 changed files with 2 additions and 0 deletions
  1. 2 0
      openwrtbuilder

+ 2 - 0
openwrtbuilder

@@ -661,9 +661,11 @@ fromSource() {
     popd &>/dev/null || return 1
 
     # Provide symlinks to images in root of BINDIR (to match Image Builder)
+    shopt -s nullglob
     for image in "$BINDIR/targets/${TARGET}/"*.{img,img.gz,ubi}; do
         ln -fs "$image" "$BINDIR/${image##*/}"
     done
+    shopt -u nullglob
 
     return 0
 }