Skip to content

Commit b90d030

Browse files
committed
Make shellcheck happy: switch “! -z” to “-n”
The complaint is just a double-negative testing expression. Basically a “not false”/“not true” situation.
1 parent 3741d64 commit b90d030

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reflac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ for dir; do
151151
else
152152
pushd -- "$dir" >/dev/null || cleanup $?
153153
if [ $VERBOSE -gt 0 ]; then readlink -f .; fi
154-
if [ ! -z "$(ls -- *.flac 2>/dev/null)" ]; then
154+
if [ -n "$(ls -- *.flac 2>/dev/null)" ]; then
155155
recompress
156156
fi
157157
popd >/dev/null

0 commit comments

Comments
 (0)