aboutsummaryrefslogtreecommitdiff
path: root/bin/eds.sh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-12-31 14:19:57 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-12-31 14:29:17 +1300
commit0c84989ca0b97ca1d075e7a304a407553e34381d (patch)
tree2188a585aef6ed345b1c575da6f63445baabf522 /bin/eds.sh
parentAdd clarifying comment (diff)
downloaddotfiles-0c84989ca0b97ca1d075e7a304a407553e34381d.tar.gz
dotfiles-0c84989ca0b97ca1d075e7a304a407553e34381d.zip
Clarify control flow in shell scripts
Diffstat (limited to 'bin/eds.sh')
-rw-r--r--bin/eds.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/eds.sh b/bin/eds.sh
index 7e719e9d..63e1a772 100644
--- a/bin/eds.sh
+++ b/bin/eds.sh
@@ -23,7 +23,10 @@ esac
# Prepend the path to each of the names given if they don't look like options
for arg do
- [ -n "$reset" ] || set -- && reset=1
+ if [ -z "$reset" ] ; then
+ set --
+ reset=1
+ fi
case $arg in
--)
optend=1