Skip to content

Commit

Permalink
check -n rather than > /dev/null
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzsequence committed Jan 30, 2024
1 parent 2ff2630 commit 48eb0d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/bin/prepare-wp-upstreams.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ done
function update_json() {
echo "Checking diff between '${working_copy_path}/wp' and '${working_copy_path}/wpms'..."
diff=$(diff "${working_copy_path}/wp" "${working_copy_path}/wpms")
if [ $diff > /dev/null ]; then
if [ -n $diff ]; then
echo "wp fixture is already ahead of wpms fixture. Skipping update."
else
# Parse the JSON file.
Expand Down

0 comments on commit 48eb0d1

Please # to comment.