Make zsh-compatible.
This commit is contained in:
parent
b764a46ded
commit
654b7ff480
1 changed files with 5 additions and 0 deletions
5
wled
5
wled
|
@ -13,6 +13,11 @@ VERSION="0.1.3"
|
||||||
exit_code=0
|
exit_code=0
|
||||||
host_list=
|
host_list=
|
||||||
|
|
||||||
|
# Shell specific options.
|
||||||
|
case "$(readlink /proc/$$/exe)" in
|
||||||
|
*/zsh) setopt SH_WORD_SPLIT ;;
|
||||||
|
esac
|
||||||
|
|
||||||
# Make the exit status of command pipelines the status of the last command
|
# Make the exit status of command pipelines the status of the last command
|
||||||
# with non-zero exit status - if supported by this shell.
|
# with non-zero exit status - if supported by this shell.
|
||||||
(set -o pipefail 2>/dev/null) && set -o pipefail
|
(set -o pipefail 2>/dev/null) && set -o pipefail
|
||||||
|
|
Loading…
Reference in a new issue