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:
parent
70064b6710
commit
423cd956dc
2 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
|
@ -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 \
|
||||
|
|
Loading…
Reference in a new issue