Update package scripts
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
name: fish
|
name: fish
|
||||||
description: A smart and user-friendly command line shell
|
description: A smart and user-friendly command line shell
|
||||||
version: 4.6.0
|
version: 4.6.0
|
||||||
revision: 1
|
revision: 2
|
||||||
url: https://fishshell.com/
|
url: https://fishshell.com/
|
||||||
license: GPL2,PSF2,MIT,LGPL2
|
license: GPL2,PSF2,MIT,LGPL2
|
||||||
maintainers:
|
maintainers:
|
||||||
|
|||||||
+8
-5
@@ -1,7 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
|
|
||||||
SHELL="/bin/fish"
|
SHELLS="/bin/fish /usr/bin/fish"
|
||||||
|
|
||||||
if ! grep "${SHELL}" "$BPM_ROOT"/etc/shells; then
|
for _shell in $SHELLS; do
|
||||||
echo "${SHELL}" | tee -a "$BPM_ROOT"/etc/shells
|
if ! grep -q "^${_shell}\$" /etc/shells; then
|
||||||
fi
|
echo "Adding '$_shell' to /etc/shells..."
|
||||||
|
echo "$_shell" | tee -a /etc/shells 1>/dev/null
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|||||||
+8
-5
@@ -1,7 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
|
|
||||||
SHELL="/bin/fish"
|
SHELLS="/bin/fish /usr/bin/fish"
|
||||||
|
|
||||||
if grep "${SHELL}" "$BPM_ROOT"/etc/shells; then
|
for _shell in $SHELLS; do
|
||||||
sed -i "\|${SHELL}|d" "$BPM_ROOT"/etc/shells
|
if grep -q "^${_shell}\$" /etc/shells; then
|
||||||
fi
|
echo "Removing '$_shell' from /etc/shells..."
|
||||||
|
sed -i "\|^${_shell}\$|d" /etc/shells
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|||||||
@@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
SHELLS="/bin/fish /usr/bin/fish"
|
||||||
|
|
||||||
|
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