Change [ to [[ and ~ to $HOME.

This commit is contained in:
Darren 'Tadgy' Austin 2019-07-01 15:29:32 +01:00
commit 2b57c9a4c3
3 changed files with 19 additions and 19 deletions

View file

@ -2,11 +2,11 @@
# Clear the screen/console on logout.
if (( $SHLVL == 10 )); then
if [ -x /usr/bin/clear_console ]; then
if [[ -x /usr/bin/clear_console ]]; then
/usr/bin/clear_console -q
elif [ -x /usr/bin/clear ]; then
elif [[ -x /usr/bin/clear ]]; then
/usr/bin/clear
elif [ -x /usr/bin/tput ]; then
elif [[ -x /usr/bin/tput ]]; then
/usr/bin/tput clear
else
echo -ne "\E[2J"