From a005853fb79a66d6e11dc12b141d297a2399fd44 Mon Sep 17 00:00:00 2001 From: Magus Date: Tue, 2 Apr 2024 00:23:39 +0700 Subject: [PATCH] more fixes ref #105 --- extra/buildall.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/extra/buildall.sh b/extra/buildall.sh index d368f4605..da0f9e705 100755 --- a/extra/buildall.sh +++ b/extra/buildall.sh @@ -20,13 +20,13 @@ if [[ ! -f $compile_exe ]]; then fi # compile all -for d in "$src"/*; do +# shellcheck disable=SC2045 # We shouldn't have non-alphanumeric names here. +for d in $(ls "$src"); do if [[ -d "$src/$d" && "$d" != "template" ]]; then # if it's a dir and not a template cd "$src/$d" + # build file list # shellcheck disable=SC2010 # We shouldn't have non-alphanumeric names here. - for f in $(# build file list - ls | grep -i "\.ssl$" - ); do + for f in $(ls | grep -i "\.ssl$"); do # shellcheck disable=SC2001 # Simple replacement doesn't work, need regex. int="$(echo "$f" | sed 's|\.ssl$|.int|')" if grep -qi "^$int " "$scripts_lst" || [[ "$d" == "global" ]]; then # if file is in scripts.lst or a global script