Change lolcat path
This commit is contained in:
parent
afe8a29a24
commit
7e0460cb6c
2
motd.sh
2
motd.sh
@ -11,6 +11,7 @@ tput_cols=$(/usr/bin/tput cols) # terminal columns
|
|||||||
MINTERMWIDTH=200 # minimal width of term, to display motd
|
MINTERMWIDTH=200 # minimal width of term, to display motd
|
||||||
UNAMECOLOR="\033[1;38;5;93m"
|
UNAMECOLOR="\033[1;38;5;93m"
|
||||||
UPTIMECOLOR="\033[1;38;5;99m"
|
UPTIMECOLOR="\033[1;38;5;99m"
|
||||||
|
lx="$MOTDPATH/lolcat/lolcat"
|
||||||
|
|
||||||
WAIFUS=$(($(ls $MOTDPATH/waifus/*.256.png | wc -w) - 1)) # count of waifus
|
WAIFUS=$(($(ls $MOTDPATH/waifus/*.256.png | wc -w) - 1)) # count of waifus
|
||||||
|
|
||||||
@ -18,7 +19,6 @@ function output() {
|
|||||||
val=0
|
val=0
|
||||||
if [ $1 == "true" ]; then val=$(($val + 1)); fi
|
if [ $1 == "true" ]; then val=$(($val + 1)); fi
|
||||||
if [ $2 == "true" ]; then val=$(($val + 2)); fi
|
if [ $2 == "true" ]; then val=$(($val + 2)); fi
|
||||||
if [ -f "/usr/games/lolcat" ]; then lx="/usr/games/lolcat"; else lx="/usr/bin/lolcat"; fi
|
|
||||||
case "$val" in
|
case "$val" in
|
||||||
0)
|
0)
|
||||||
/bin/cat $MOTDPATH/motd
|
/bin/cat $MOTDPATH/motd
|
||||||
|
Loading…
x
Reference in New Issue
Block a user