Closed frebib closed 3 years ago
Fix the silent test failure by catching the uncaught error from command, handling the failure gracefully.
command
$ bash -x test/test-markdownlint.sh ... ++ command -v mdl + MDL= $ echo $? 1 $ bash -x test/test-markdownlint.sh ... ++ command -v mdl + MDL= + true + '[' -z '' ']' + fail_test 'The '\''mdl'\'' utility can'\''t be found.' + echo -e 'FAIL: The '\''mdl'\'' utility can'\''t be found.' FAIL: The 'mdl' utility can't be found.
Fix a couple of glaring shellcheck warnings and errors mostly surrounding variable quoting.
Signed-off-by: Joe Groocock me@frebib.net
LGTM. Please excuse all my terrible bash habits!
Merged, thanks!
Fix the silent test failure by catching the uncaught error from
command
, handling the failure gracefully.Fix a couple of glaring shellcheck warnings and errors mostly surrounding variable quoting.
Signed-off-by: Joe Groocock me@frebib.net