projects
/
feed
/
packages.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea3e54a
)
zsh: drop bash syntax in postinst
author
Karel Kočí
<karel.koci@nic.cz>
Thu, 19 Dec 2019 09:32:25 +0000
(10:32 +0100)
committer
Josef Schlehofer
<pepe.schlehofer@gmail.com>
Fri, 17 Dec 2021 22:48:23 +0000
(23:48 +0100)
Signed-off-by: Karel Kočí <karel.koci@nic.cz>
(cherry picked from commit
c09d6042fe3b58d7eb0fdc65fc9968c47d98aea1
)
utils/zsh/Makefile
patch
|
blob
|
history
diff --git
a/utils/zsh/Makefile
b/utils/zsh/Makefile
index 85b441f9f94ac04522bf1baab2e32d3b7f63800c..a2e37ca1f9e52c008cc9d518f62fbc165ae886b9 100644
(file)
--- 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