diff options
| author | Yousong Zhou <yszhou4tech@gmail.com> | 2018-05-09 20:14:32 +0800 |
|---|---|---|
| committer | Yousong Zhou <yszhou4tech@gmail.com> | 2018-05-09 20:14:50 +0800 |
| commit | d859554090bbe7eb3c4f9204ceaf2b1917c97444 (patch) | |
| tree | 3d47dba90053c2d14dff9dd1148f9c5bc8a2cd30 /utils/bash | |
| parent | da1912f868924541e7d9333c468f1bfc4bf25f06 (diff) | |
bash: fix postinst script
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
Diffstat (limited to 'utils/bash')
| -rw-r--r-- | utils/bash/Makefile | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/utils/bash/Makefile b/utils/bash/Makefile index 05931463a..76f30c977 100644 --- a/utils/bash/Makefile +++ b/utils/bash/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=bash PKG_VERSION:=4.4.18 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=@GNU/bash @@ -75,9 +75,10 @@ CONFIGURE_ARGS+= \ define Package/bash/postinst #!/bin/sh -grep bash $${IPKG_INSTROOT}/etc/shells || \ - echo "/bin/bash" >> $${IPKG_INSTROOT}/etc/shells - echo "/bin/rbash" >> $${IPKG_INSTROOT}/etc/shells +grep -q bash "$${IPKG_INSTROOT}/etc/shells" || { + echo /bin/bash >> "$${IPKG_INSTROOT}/etc/shells" + echo /bin/rbash >> "$${IPKG_INSTROOT}/etc/shells" +} endef define Package/bash/install |
