Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions binscripts/gvm-installer
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,12 @@ if [ -z "$GVM_NO_UPDATE_PROFILE" ] ; then
if [ -f "$HOME/.zshrc" ]; then
update_profile "$HOME/.zshrc"
fi
if [ "$(uname)" == "Linux" ]; then
if [[ "$(uname)" == "Linux" ]]; then
update_profile "$HOME/.bashrc" || update_profile "$HOME/.bash_profile"
elif [ "$(uname)" == "Darwin" ]; then
elif [[ "$(uname)" == "Darwin" ]]; then
LOGIN_SHELL=$(finger $(id -u -n) | grep Shell | cut -d : -f 3)
echo "macOS detected. User shell is:" $LOGIN_SHELL
if [ $LOGIN_SHELL == "/bin/zsh" ]; then # macOS moved to ZSH after macOS Catalina
if [[ $LOGIN_SHELL == "/bin/zsh" ]]; then # macOS moved to ZSH after macOS Catalina
update_profile "$HOME/.zshrc"
else
update_profile "$HOME/.profile" || update_profile "$HOME/.bash_profile"
Expand Down