Skip to content

Commit

Permalink
positive check for csh to edit .login file
Browse files Browse the repository at this point in the history
  • Loading branch information
mjfitzpatrick committed Jan 9, 2024
1 parent e67e00f commit 754a407
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions install
Original file line number Diff line number Diff line change
Expand Up @@ -987,10 +987,10 @@ if (( $do_system==0 )); then
pfiles=("$iraf/local/.cshrc $iraf/local/.login")
else
ECHO -n "Editing the user .login/.cshrc paths ... "
if [ "$SHELL" == "/bin/sh" ]; then
pfiles=("$HOME/.bashrc $HOME/.profile $HOME/.bash_profile $HOME/.bash_login")
else
if [ "$SHELL" == "/bin/csh" ]; then
pfiles=("$HOME/.cshrc $HOME/.login")
else
pfiles=("$HOME/.bashrc $HOME/.profile $HOME/.bash_profile $HOME/.bash_login")
fi
fi
for file in ${pfiles[@]}; do
Expand Down

0 comments on commit 754a407

Please # to comment.