Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
63b8021d2e
|
||
|
|
1e4b12b1ca
|
@@ -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.5.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:
|
||||||
@@ -25,4 +25,4 @@ downloads:
|
|||||||
- url: https://github.com/fish-shell/fish-shell/releases/download/${BPM_PKG_VERSION}/fish-${BPM_PKG_VERSION}.tar.xz
|
- url: https://github.com/fish-shell/fish-shell/releases/download/${BPM_PKG_VERSION}/fish-${BPM_PKG_VERSION}.tar.xz
|
||||||
extract_to: ${BPM_SOURCE}
|
extract_to: ${BPM_SOURCE}
|
||||||
extract_strip_components: 1
|
extract_strip_components: 1
|
||||||
checksum: 89151f8cf14b634e080226fe696f9ce7d4d153c77629996ca4431c80482c64ed
|
checksum: fc9165f733a0e28a3dba11c9b1a286bc88a853f152a6694cd993512a2f1761aa
|
||||||
|
|||||||
+7
-4
@@ -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
|
||||||
|
echo "Adding '$_shell' to /etc/shells..."
|
||||||
|
echo "$_shell" | tee -a /etc/shells 1>/dev/null
|
||||||
fi
|
fi
|
||||||
|
done
|
||||||
|
|||||||
+7
-4
@@ -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
|
||||||
|
echo "Removing '$_shell' from /etc/shells..."
|
||||||
|
sed -i "\|^${_shell}\$|d" /etc/shells
|
||||||
fi
|
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