aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-11-25 20:35:36 +1300
committerTom Ryder <tom@sanctum.geek.nz>2016-11-25 20:35:36 +1300
commit1d1b09a753304a6c7986fc2eed319957d7ad27eb (patch)
tree05bdd07eb2cbf3d3fea7c362487307b25015c002 /bin
parentHandle find(1) path metachars (diff)
downloaddotfiles-1d1b09a753304a6c7986fc2eed319957d7ad27eb.tar.gz
dotfiles-1d1b09a753304a6c7986fc2eed319957d7ad27eb.zip
Correct order of assignments in sqs(1df)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/sqs4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/sqs b/bin/sqs
index 353238d5..d0b3023f 100755
--- a/bin/sqs
+++ b/bin/sqs
@@ -12,8 +12,8 @@ fi
for sn ; do
# Strip trailing slash if any and then query string
- dn=${sn%/}
- dn=${dn%%\?*}
+ sn=${sn%/}
+ dn=${sn%%\?*}
# Ignore this file if its name wouldn't change
[ "$sn" != "$dn" ] || continue