summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xscripts/dupe-finder.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/dupe-finder.sh b/scripts/dupe-finder.sh
index 9ffae6d..dec0d68 100755
--- a/scripts/dupe-finder.sh
+++ b/scripts/dupe-finder.sh
@@ -4,9 +4,7 @@
# We're setting the envvar here to enforce the -w argument to uniq
result=$(VGSTASH_TABLE_WIDTH=80 vgstash list | uniq -D -f 2 -w 58)
-if [[ -z $result ]]; then
- exit
-else
+if [[ -n $result ]]; then
VGSTASH_TABLE_WIDTH=80 vgstash list | head -n 2
echo "$result"
fi