]> git.ozlabs.org Git - next-scripts/commitdiff
check_dups: fix a shellcheck warning
authorStephen Rothwell <sfr@canb.auug.org.au>
Wed, 13 Aug 2025 06:41:40 +0000 (16:41 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 13 Aug 2025 06:41:40 +0000 (16:41 +1000)
check_dups.sh

index ac1cb35b2f351c5104069b39e413fd4b00825453..768d4599bcfd83693b23be808b2a08ec1a17587f 100644 (file)
@@ -26,7 +26,7 @@ check_dups()
        dups=$(git cherry "$base" "$sha" | sed -n 's/^- //p' |
                xargs -r -n 1 "$tools_dir"/clog | sort)
 
-       if ! [ -z "$dups" ]; then
+       if [ -n "$dups" ]; then
                for o in $(get_branches "$name"); do
                        ol="$top_dir/duplicates/linus/$o"
                        if [ -f "$ol" ]; then