fix: broken whitespace guard in archive-images.sh
Build Dev ISO / build-dev-iso (push) Successful in 4m19s
Build Dev ISO / build-dev-iso (push) Successful in 4m19s
The case bracket expression [\ space\'\"] listed the letters s,p,a,c,e as a character set instead of matching whitespace, rejecting every normal path. Use the POSIX [[:space:]] class.
This commit is contained in:
@@ -20,7 +20,7 @@ patterns=("$@")
|
||||
|
||||
for v in "$images_dir" "$archive_dir" "${patterns[@]}"; do
|
||||
case $v in
|
||||
*[\ space\'\"]*) die "unsafe argument (whitespace/quotes): $v" ;;
|
||||
*[[:space:]\'\"]*) die "unsafe argument (whitespace/quotes): $v" ;;
|
||||
esac
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user