diff options
Diffstat (limited to 'repo/util')
-rw-r--r-- | repo/util/bash.xibuild | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/repo/util/bash.xibuild b/repo/util/bash.xibuild index 8b02e5a..8e1a3d8 100644 --- a/repo/util/bash.xibuild +++ b/repo/util/bash.xibuild @@ -18,5 +18,7 @@ package () { } postinstall () { - grep -q "bash" /etc/shells || echo "/bin/bash" >> /etc/shells + if [ -f /etc/shells ] || grep -vq "bash" /etc/shells; then + echo "/bin/bash" >> /etc/shells + fi } |