Update package scripts
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
name: dash
|
||||
description: POSIX-compliant implementation of /bin/sh that aims to be as small as possible
|
||||
version: 0.5.13.2
|
||||
revision: 1
|
||||
revision: 2
|
||||
url: http://gondor.apana.org.au/~herbert/dash/
|
||||
license: BSD-3-Clause
|
||||
maintainers:
|
||||
|
||||
+7
-4
@@ -1,7 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
SHELL="/bin/dash"
|
||||
SHELLS="/bin/dash /usr/bin/dash"
|
||||
|
||||
if ! grep "${SHELL}" "$BPM_ROOT"/etc/shells; then
|
||||
echo "${SHELL}" | tee -a "$BPM_ROOT"/etc/shells
|
||||
fi
|
||||
for _shell in $SHELLS; do
|
||||
if ! grep -q "^${_shell}\$" /etc/shells; then
|
||||
echo "Adding '$_shell' to /etc/shells..."
|
||||
echo "$_shell" | tee -a /etc/shells 1>/dev/null
|
||||
fi
|
||||
done
|
||||
|
||||
+7
-4
@@ -1,7 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
SHELL="/bin/dash"
|
||||
SHELLS="/bin/dash /usr/bin/dash"
|
||||
|
||||
if grep "${SHELL}" "$BPM_ROOT"/etc/shells; then
|
||||
sed -i "\|${SHELL}|d" "$BPM_ROOT"/etc/shells
|
||||
fi
|
||||
for _shell in $SHELLS; do
|
||||
if grep -q "^${_shell}\$" /etc/shells; then
|
||||
echo "Removing '$_shell' from /etc/shells..."
|
||||
sed -i "\|^${_shell}\$|d" /etc/shells
|
||||
fi
|
||||
done
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
SHELLS="/bin/dash /usr/bin/dash"
|
||||
|
||||
for _shell in $SHELLS; do
|
||||
if ! grep -q "^${_shell}\$" /etc/shells; then
|
||||
echo "Adding '$_shell' to /etc/shells..."
|
||||
echo "$_shell" | tee -a /etc/shells 1>/dev/null
|
||||
fi
|
||||
done
|
||||
Reference in New Issue
Block a user