Merge "Resolve ShellCheck errors in shell scripts"
[releng/global-jjb.git] / shell / jjb-verify-job.sh
index c42438e..8dd50f7 100644 (file)
@@ -29,7 +29,7 @@ do
 done
 popd
 
-if [ ! -z "$(ls -A archives/job-configs)" ]; then
+if [ -n "$(ls -A archives/job-configs)" ]; then
     tar cJvf archives/job-configs.tar.xz archives/job-configs
     rm -rf archives/job-configs
 fi