Skip to content

Commit

Permalink
Update install-heasoft.sh
Browse files Browse the repository at this point in the history
fixed a bug where the HEADAS environment variable was not being properly exported from .bashrc
  • Loading branch information
Anish-Sarkar-1001 authored May 23, 2024
1 parent 29c65ee commit b594ba3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install-heasoft.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ chmod u+x headas-init.sh
headas_path=$(pwd)

echo "Modifying .bashrc..."
echo -e "\n#heasoft\n\nHEADAS=\"${headas_path}\"\n. \"\$HEADAS/headas-init.sh\"" >> ~/.bashrc
echo -e "\n#heasoft\n\nexport HEADAS=\"${headas_path}\"\n. \"\$HEADAS/headas-init.sh\"" >> ~/.bashrc
. ~/.bashrc

hea_version=$(fversion)
echo "Heasoft version: $hea_version installed"
echo "Heasoft version: $hea_version installed"

0 comments on commit b594ba3

Please sign in to comment.