# HG changeset patch # User nanaya # Date 1666351307 -32400 # Node ID a9fbb21ab09c9c5164293c110192fca7b53075ba # Parent 17cacf387f7c4442639bdc3ae3125fde3ce22b9e [setup] shellcheck-ed diff -r 17cacf387f7c -r a9fbb21ab09c setup --- a/setup Fri Oct 21 20:17:06 2022 +0900 +++ b/setup Fri Oct 21 20:21:47 2022 +0900 @@ -21,8 +21,6 @@ # FIXME: test existence of the directories. # dotfiles rcdir="${basedir}/rc" -# misc scripts -bindir="${basedir}/bin" # Make sure $HOME points somewhere and writable. test -n "${HOME}" || exit 1 @@ -41,7 +39,9 @@ case "$1" in uninstall|install) _rc "${1}" "cshrc" ".ec.tcsh" + # shellcheck disable=SC2016 _init "${1}" 'test -r "${HOME}/.ec.tcsh" && source "${HOME}/.ec.tcsh" #ECCORE_TCSH' ".cshrc" + # shellcheck disable=SC2016 _init "${1}" 'test -r "${HOME}/.ec.tcsh" && source "${HOME}/.ec.tcsh" #ECCORE_TCSH' ".tcshrc" ;; esac @@ -51,7 +51,9 @@ case "${1}" in uninstall|install) _rc "${1}" "bashrc" ".ec.bash" + # shellcheck disable=SC2016 _init "${1}" '[ -r "${HOME}/.ec.bash" ] && . "${HOME}/.ec.bash" #ECCORE_BASH' ".bash_profile" + # shellcheck disable=SC2016 _init "${1}" '[ -r "${HOME}/.ec.bash" ] && . "${HOME}/.ec.bash" #ECCORE_BASH' ".bashrc" ;; esac @@ -61,6 +63,7 @@ case "${1}" in uninstall|install) _rc "${1}" "kshrc" ".ec.ksh" + # shellcheck disable=SC2016 _init "${1}" '[ -r "${HOME}/.ec.ksh" ] && . "${HOME}/.ec.ksh" #ECCORE_KSH' ".profile" ;; esac @@ -70,6 +73,7 @@ case "${1}" in uninstall|install) _rc "${1}" "zshrc" ".ec.zsh" + # shellcheck disable=SC2016 _init "${1}" '[ -r "${HOME}/.ec.zsh" ] && . "${HOME}/.ec.zsh" #ECCORE_ZSH' ".zshrc" ;; esac @@ -130,7 +134,7 @@ shift touch "${@}" - _echo "Ensured existence of ${@}" + _echo "Ensured existence of ${*}" } _tmux() {