From: Karel Kočí Date: Thu, 19 Dec 2019 09:32:25 +0000 (+0100) Subject: zsh: drop bash syntax in postinst X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=c09d6042fe3b58d7eb0fdc65fc9968c47d98aea1;p=openwrt-packages.git zsh: drop bash syntax in postinst Signed-off-by: Karel Kočí --- diff --git a/utils/zsh/Makefile b/utils/zsh/Makefile index 85b441f9f..a2e37ca1f 100644 --- a/utils/zsh/Makefile +++ b/utils/zsh/Makefile @@ -92,7 +92,7 @@ grep zsh $${IPKG_INSTROOT}/etc/shells || \ echo "/usr/bin/zsh" >> $${IPKG_INSTROOT}/etc/shells # Backwards compatibility -if [[ -e /bin/zsh ]] && ([[ ! -L /bin/zsh ]] || [[ "$(readlink -fn $${IPKG_INSTROOT}/bin/zsh)" != "../$(CONFIGURE_PREFIX)/bin/zsh" ]]); then +if [ -e /bin/zsh ] && { [ ! -L /bin/zsh ] || [ "$(readlink -fn $${IPKG_INSTROOT}/bin/zsh)" != "../$(CONFIGURE_PREFIX)/bin/zsh" ]; }; then ln -fs "../$(CONFIGURE_PREFIX)/bin/zsh" "$${IPKG_INSTROOT}/bin/zsh" fi endef