From eaa05d39d2c7a28a7a3000f0741695a36cb75ce2 Mon Sep 17 00:00:00 2001 From: xpamych Date: Sat, 25 Feb 2023 16:45:06 +0300 Subject: [PATCH] fi --- hlna-git/postinstall.sh | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/hlna-git/postinstall.sh b/hlna-git/postinstall.sh index 1329681..a7b0158 100755 --- a/hlna-git/postinstall.sh +++ b/hlna-git/postinstall.sh @@ -1,15 +1,14 @@ - if test -f /home/$SUDO_USER/.zshrc; then echo "zshrc" echo 'alias hlna="hlna.py"'>>/home/$SUDO_USER/.zshrc echo 'alias hlna-bot="hlna-bot.py"'>>/home/$SUDO_USER/.zshrc -elif test -f /home/$SUDO_USER/.config/fish/config.fish; then -echo "fish" +fi +if test -f /home/$SUDO_USER/.config/fish/config.fish; then echo 'alias hlna="hlna.py"'>>/home/$SUDO_USER/.config/fish/config.fish echo 'alias hlna-bot="hlna-bot.py"'>>/home/$SUDO_USER/.config/fish/config.fish -else -echo "bash" -echo 'alias hlna="hlna.py"'>>/home/$SUDO_USER/.bashrc -echo 'alias hlna-bot="hlna-bot.py"'>>/home/$SUDO_USER/.bashrc -source /home/$SUDO_USER/.bashrc fi +if test -f /home/$SUDO_USER/.bashrc; then +echo 'alias hlna="hlna.py"'>>/home/$SUDO_USER/.bashrc +echo 'alias hlna-bot="hlna-bot.py"'>>/home/$SUDO_USER/.bashrsc +source /home/$SUDO_USER/.bashrc +fi \ No newline at end of file