summaryrefslogtreecommitdiff
path: root/repo/util/dash.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-03-10 23:01:07 +0000
committerdavidovski <david@davidovski.xyz>2022-03-10 23:01:07 +0000
commit2bda0d54b37dd3ebf7917c3a58c0404d21afe7f6 (patch)
tree36a97971d0f9c6151f36b333383bb985289f23e3 /repo/util/dash.xibuild
parent08c8891c20131576640f30cc40fcdbc57a497957 (diff)
shell will now default to dash asap
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