no expandir directorios vacíos

This commit is contained in:
f 2022-03-03 14:25:16 -03:00
parent 3bd1b4cf48
commit 0f0a743123

View file

@ -3,11 +3,12 @@
source /etc/nodemecu.conf source /etc/nodemecu.conf
source $install_dir/functions source $install_dir/functions
# No expandir directorios vacíos
shopt -s nullglob
# Revisando stack # Revisando stack
for filename in $install_dir/stack/*;do for filename in $install_dir/stack/*;do
test "$filename" = "$install_dir/stack/\*" || break
jq $filename >/dev/null 2>&1 || mv -v $filename $corrupt jq $filename >/dev/null 2>&1 || mv -v $filename $corrupt
done done