# HG changeset patch # User Oleksandr Gavenko # Date 1622558921 -10800 # Node ID 9f36844d6441764b6b0631c805cf942ef6dcbee5 # Parent 2485d7292a7362494be417bc6d15c6e7b0a3c637 Combined dependent check into "elif". diff -r 2485d7292a73 -r 9f36844d6441 .env.bash --- a/.env.bash Tue Jun 01 17:47:00 2021 +0300 +++ b/.env.bash Tue Jun 01 17:48:41 2021 +0300 @@ -40,8 +40,9 @@ fi -[[ -z $LD_LIBRARY_PATH ]] && LD_LIBRARY_PATH=$HOME/usr/lib -if [[ ! :$LD_LIBRARY_PATH: =~ :$HOME/usr/lib: ]]; then +if [[ -z $LD_LIBRARY_PATH ]]; then + LD_LIBRARY_PATH=$HOME/usr/lib +elif [[ :$LD_LIBRARY_PATH: != *:$HOME/usr/lib:* ]]; then export LD_LIBRARY_PATH="$LD_LIBRARY_PATH":$HOME/usr/lib fi