update set and unset env

This commit is contained in:
2023-10-23 20:36:05 +02:00
parent 0b134bb20b
commit 537d34bca0
2 changed files with 8 additions and 5 deletions
+5 -3
View File
@@ -1,11 +1,13 @@
#!/bin/bash
LD_LIBRARY_PATH=$(echo $LD_LIBRARY_PATH | sed "s@$PWD:@@g")
CPATH=$(echo $CPATH | sed "s@$PWD/include_ytest/include:@@g")
if [ "$#" -le 0 ] ; then
LD_LIBRARY_PATH=$(echo $LD_LIBRARY_PATH | sed "s@$PWD:@@g")
CPATH=$(echo $CPATH | sed "s@$PWD/include_ytest/include:@@g")
echo "If need permanent unset env "
echo "Usage: $0 file_name"
echo "for example: $0 ~/.bashrc" >&2
echo "or other bash profile ( here : \"~/.bashrc\" for example), the same file you have set whith set_env.sh"
echo "or other bash profile ( here : \"~/.bashrc\" for example), the same file you have set with set_env.sh"
fi