oehrlis / oudbase

OUD base environment scripts
Apache License 2.0
6 stars 1 forks source link

oudbase_install.sh creates wrong profile #70

Closed oehrlis closed 4 years ago

oehrlis commented 4 years ago

oudbase_install.sh does update the .bash_profile. this update includes a check if oudenv is source in an interactive session or not. Check for this is wrong escaped.

oehrlis commented 4 years ago

Wrong escape in oudbase_install for bash profile

following lines must be changed

echo "if [ -z \"$PS1\" ]; then"                                    >>"${PROFILE}"

 DoMsg "if [ -z \"$PS1\" ]; then"

With an escape for $

echo "if [ -z \"\$PS1\" ]; then"                                    >>"${PROFILE}"

 DoMsg "if [ -z \"\$PS1\" ]; then"