summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorZeLibertineGamer <zlg@zlg.space>2016-05-23 05:25:53 -0700
committerZe Libertine Gamer <zlg@zlg.space>2016-05-23 05:25:53 -0700
commit24130015989111c935df9527322c6998a2bf4767 (patch)
tree356f66602427530145eca6671d0eedf555e8b5d3 /scripts
parentShow help when invoked without arguments (diff)
downloadvgstash-24130015989111c935df9527322c6998a2bf4767.tar.gz
vgstash-24130015989111c935df9527322c6998a2bf4767.tar.bz2
vgstash-24130015989111c935df9527322c6998a2bf4767.tar.xz
vgstash-24130015989111c935df9527322c6998a2bf4767.zip
dupe-finder.sh: Invert if statement
...Really?
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