From 1f484d8bfc36210bc7dfc455c88198bbaebd9071 Mon Sep 17 00:00:00 2001 From: bryan Date: Tue, 14 Feb 2023 13:27:09 -0500 Subject: [PATCH] Avoid nullglob --- openwrtbuilder | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openwrtbuilder b/openwrtbuilder index 7ea55e5..7419773 100755 --- a/openwrtbuilder +++ b/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 }