Skip to content

Commit

Permalink
Make shellcheck happy: switch “! -z” to “-n”
Browse files Browse the repository at this point in the history
The complaint is just a double-negative testing expression.  Basically
a “not false”/“not true” situation.
  • Loading branch information
chungy committed Aug 16, 2021
1 parent 3741d64 commit b90d030
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reflac
Expand Up @@ -151,7 +151,7 @@ for dir; do
else
pushd -- "$dir" >/dev/null || cleanup $?
if [ $VERBOSE -gt 0 ]; then readlink -f .; fi
if [ ! -z "$(ls -- *.flac 2>/dev/null)" ]; then
if [ -n "$(ls -- *.flac 2>/dev/null)" ]; then
recompress
fi
popd >/dev/null
Expand Down

0 comments on commit b90d030

Please sign in to comment.