2
1
Fork 0
mirror of https://git.savannah.gnu.org/git/gnuboot.git synced 2025-01-07 15:27:38 +01:00

release: tests: make it pass shellcheck.

Without this fix, running shellcheck -x on
resources/packages/release/test shows the following error:
    In resources/packages/release/test line 200:
    missing_in_release_files=$(expr $missing_in_release_files + 1)
                                       ^--^ SC2003 (style): expr is antiquated.
    Consider rewriting this using $((..)), ${} or [[ ]].
                                            ^-----------------------^ SC2086
    (info): Double quote to prevent globbing and word splitting.

Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Acked-by: Adrien 'neox' Bourmault <neox@gnu.org>
This commit is contained in:
Denis 'GNUtoo' Carikli 2024-12-20 22:24:07 +01:00 committed by Adrien 'neox' Bourmault
parent 70064b6710
commit 423cd956dc
Signed by: neox
GPG key ID: 57BC26A3687116F6
2 changed files with 2 additions and 1 deletions

View file

@ -197,7 +197,7 @@ test_release_dir()
if [ $found -eq 0 ] ; then
echo "[ !! ] $path missing in \${release_files}"
missing_in_release_files=$(expr $missing_in_release_files + 1)
missing_in_release_files="$((missing_in_release_files + 1))"
fi
done < <(find "${dir}" -type f -print0)

View file

@ -57,6 +57,7 @@ run_shellcheck \
resources/packages/ich9utils/distclean \
resources/packages/memtest86plus/distclean \
resources/packages/payloads/distclean \
resources/packages/release/test \
resources/packages/rom_images/distclean \
resources/packages/roms/distclean \
resources/packages/roms/download \