diff --git a/pkg.info b/pkg.info index 1b3d6e8..f77798e 100644 --- a/pkg.info +++ b/pkg.info @@ -4,4 +4,5 @@ version: 5.2.21 url: https://www.gnu.org/software/bash/ license: GPL3-or-later architecture: any +keep: etc/bashrc,etc/profile type: source diff --git a/post_install.sh b/post_install.sh new file mode 100644 index 0000000..12b31ac --- /dev/null +++ b/post_install.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +SHELL="/bin/bash" + +if ! grep "${SHELL}" "$BPM_ROOT"/etc/shells; then + echo "${SHELL}" | tee -a "$BPM_ROOT"/etc/shells +fi diff --git a/post_remove.sh b/post_remove.sh new file mode 100644 index 0000000..e03dca7 --- /dev/null +++ b/post_remove.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +SHELL="/bin/bash" + +if grep "${SHELL}" "$BPM_ROOT"/etc/shells; then + sed -i "s|${SHELL}|d" "$BPM_ROOT"/etc/shells +fi