diff options
author | Patrick Spek <p.spek@tyil.nl> | 2020-03-22 13:44:01 +0100 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2020-03-22 13:44:01 +0100 |
commit | 1548063b6ac54affecccc19872b1ffeed64f0887 (patch) | |
tree | 645d7ec3faeff40be96172b134023510334b5b6a /lib/main.bash | |
parent | e335ffb41f7d65f369a8e4170affcd8d68a40be2 (diff) |
Work out (most?) issues reported by shellcheck
Diffstat (limited to 'lib/main.bash')
-rw-r--r-- | lib/main.bash | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/main.bash b/lib/main.bash index 1d57dcc..cf4c1a3 100644 --- a/lib/main.bash +++ b/lib/main.bash @@ -87,7 +87,7 @@ depcheck_bin() { missing+=("$tool") done - if [[ $missing ]] + if [[ ${missing[*]} ]] then alert "Some required tools are missing:" @@ -113,11 +113,11 @@ depcheck_perl() { missing+=("$tool") done - if [[ $missing ]] + if [[ ${missing[*]} ]] then alert "Some required Perl modules are missing:" - for modules in "${missing[@]}" + for module in "${missing[@]}" do alert " $module" done |