summaryrefslogtreecommitdiff
path: root/repo/util/dash.xibuild
diff options
context:
space:
mode:
Diffstat (limited to 'repo/util/dash.xibuild')
-rw-r--r--repo/util/dash.xibuild4
1 files changed, 3 insertions, 1 deletions
diff --git a/repo/util/dash.xibuild b/repo/util/dash.xibuild
index c85eeb8..a63eb4d 100644
--- a/repo/util/dash.xibuild
+++ b/repo/util/dash.xibuild
@@ -15,11 +15,13 @@ build () {
package () {
make DESTDIR=$PKG_DEST install
-
ln -s dash $PKG_DEST/usr/bin/sh
}
postinstall () {
+ command -v grep || exit 1
+ command -v echo || exit 1
+
if [ -f /etc/shells ] || grep -vq "dash" /etc/shells; then
echo "/bin/bash" >> /etc/shells
fi