Adding choose-shell script

This commit is contained in:
Derek Taylor
2025-05-21 15:46:50 -05:00
parent ed8b3a1e41
commit f990d8df1c

View File

@@ -17,6 +17,7 @@ print_info "Choose your user's default shell:"
echo "1. /bin/bash"
echo "2. /bin/fish"
echo "3. /bin/zsh"
echo "4. quit"
read -p "Enter the number of your preferred shell: " choice
@@ -39,6 +40,10 @@ log back in for change to take effect."
printf '%s' "If default shell was changed, you will need to logout and
log back in fo\nr change to take effect."
;;
4)
echo "User has chosen to quit program."
exit 1
;;
*)
echo "Invalid choice. Please try again."
exit 1