aboutsummaryrefslogtreecommitdiff
path: root/bin/eds.sh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-12-06 14:25:39 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-12-06 14:26:06 +1300
commit0c4bf7de3604eeb00e2cf590867d43ceb2f0f85d (patch)
tree124ccc28400bfa078f0a701e6610cbba9564a710 /bin/eds.sh
parentSubstitute bad `continue` for `return` (diff)
downloaddotfiles-0c4bf7de3604eeb00e2cf590867d43ceb2f0f85d.tar.gz
dotfiles-0c4bf7de3604eeb00e2cf590867d43ceb2f0f85d.zip
Remove unneeded semicolon from sh "for VAR ; do"
It turns out the semicolon belongs to the "in" syntax, and is optional without it.
Diffstat (limited to 'bin/eds.sh')
-rw-r--r--bin/eds.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/eds.sh b/bin/eds.sh
index c85069c6..c692cb30 100644
--- a/bin/eds.sh
+++ b/bin/eds.sh
@@ -21,7 +21,7 @@ case :$PATH: in
esac
# Prepend the path to each of the names given if they don't look like options
-for arg ; do
+for arg do
[ -n "$reset" ] || set -- && reset=1
case $arg in
--)
@@ -44,7 +44,7 @@ done
"${VISUAL:-"${EDITOR:-ed}"}" "$@"
# Make any created scripts executable if they now appear to be files
-for script ; do
+for script do
[ -f "$script" ] || continue
chmod +x -- "$script"
done