diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-12-06 14:25:39 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-12-06 14:26:06 +1300 |
commit | 0c4bf7de3604eeb00e2cf590867d43ceb2f0f85d (patch) | |
tree | 124ccc28400bfa078f0a701e6610cbba9564a710 /check | |
parent | Substitute bad `continue` for `return` (diff) | |
download | dotfiles-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 'check')
-rw-r--r-- | check/bash.sh | 2 | ||||
-rw-r--r-- | check/ksh.sh | 2 | ||||
-rw-r--r-- | check/sh.sh | 2 | ||||
-rw-r--r-- | check/xinit.sh | 2 | ||||
-rw-r--r-- | check/zsh.sh | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/check/bash.sh b/check/bash.sh index 1f9e1b38..510f2af0 100644 --- a/check/bash.sh +++ b/check/bash.sh @@ -5,7 +5,7 @@ set \ bash/bash_profile \ bash/bashrc \ bash/bashrc.d/*.bash -for bash ; do +for bash do bash -n -- "$bash" || exit done printf 'GNU Bash dotfiles parsed successfully.\n' diff --git a/check/ksh.sh b/check/ksh.sh index f4bade82..cf83bc1f 100644 --- a/check/ksh.sh +++ b/check/ksh.sh @@ -1,7 +1,7 @@ set \ ksh/kshrc \ ksh/kshrc.d/*.ksh -for ksh ; do +for ksh do ksh -n -- "$ksh" || exit done sh -n -- ksh/shrc.d/ksh.sh || exit diff --git a/check/sh.sh b/check/sh.sh index 92910c11..e0162f47 100644 --- a/check/sh.sh +++ b/check/sh.sh @@ -4,7 +4,7 @@ set \ sh/shinit \ sh/shrc \ sh/shrc.d/*.sh -for sh ; do +for sh do sh -n -- "$sh" || exit done printf 'POSIX shell dotfiles parsed successfully.\n' diff --git a/check/xinit.sh b/check/xinit.sh index fa235c9d..ae03b8c2 100644 --- a/check/xinit.sh +++ b/check/xinit.sh @@ -1,7 +1,7 @@ set \ X/xinitrc \ X/xinitrc.d/*.sh -for xinit ; do +for xinit do sh -n -- "$xinit" || exit done printf 'Xinit startup scripts parsed successfully.\n' diff --git a/check/zsh.sh b/check/zsh.sh index ce209584..0170e586 100644 --- a/check/zsh.sh +++ b/check/zsh.sh @@ -2,7 +2,7 @@ set \ zsh/zprofile \ zsh/zshrc.d/*.zsh \ zsh/zshrc -for zsh ; do +for zsh do zsh -n -- "$zsh" || exit done sh -n zsh/profile.d/zsh.sh || exit |