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.lede-project.org./?a=commitdiff_plain;h=64d0238a1bef537febcf5bded596159d7b46d231;p=feed%2Fpackages.git zsh: drop bash syntax in postinst Signed-off-by: Karel Kočí (cherry picked from commit c09d6042fe3b58d7eb0fdc65fc9968c47d98aea1) --- diff --git a/utils/zsh/Makefile b/utils/zsh/Makefile index 85b441f9f9..a2e37ca1f9 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