fix: use bash comparison (#1442)

This commit is contained in:
m2 2024-06-24 18:48:40 -04:00 committed by GitHub
parent 447ad1aaa2
commit 0b04956837
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -22,13 +22,13 @@ bluefin-cli:
brew bundle --file /usr/share/ublue-os/homebrew/bluefin-cli.Brewfile --no-lock
echo 'Setting up your Shell 🐚🐚🐚'
shell=$(basename $SHELL)
if test $shell -eq "fish"; then
if [[ "${shell}" == "fish" ]]; then
echo 'Adding bling to your config.fish 🐟🐟🐟'
printf 'source /usr/share/ublue-os/bluefin-cli/bling.fish' >> ${XDG_CONFIG_HOME:-$HOME/.config}/fish/config.fish
elif test $shell -eq "zsh"; then
elif [[ "${shell}" == "zsh" ]]; then
echo 'Adding bling to your .zshrc 💤💤💤'
printf 'source /usr/share/ublue-os/bluefin-cli/bling.sh' >> ${ZDOTDIR:-$HOME}/.zshrc
elif test $shell -eq "bash"; then
elif [[ "${shell}" == "bash" ]]; then
echo 'Adding bling to your .bashrc 💥💥💥'
printf 'source /usr/share/ublue-os/bluefin-cli/bling.sh' >> ${HOME}/.bashrc
else