From 654b7ff48046d3ebb62f68039f82180446db2585 Mon Sep 17 00:00:00 2001 From: Shy Date: Thu, 8 Aug 2024 19:53:24 +0200 Subject: [PATCH] Make zsh-compatible. --- wled | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wled b/wled index c0e89ff..8ed3fab 100755 --- a/wled +++ b/wled @@ -13,6 +13,11 @@ VERSION="0.1.3" exit_code=0 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 # with non-zero exit status - if supported by this shell. (set -o pipefail 2>/dev/null) && set -o pipefail