Change [ to [[ and ~ to $HOME.
This commit is contained in:
parent
ace5e0e8e3
commit
2b57c9a4c3
3 changed files with 19 additions and 19 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue