From 09f22c706c92e79c0dc6a58764fd2581f2432660 Mon Sep 17 00:00:00 2001 From: sevi-kun Date: Sun, 18 Jul 2021 18:46:08 +0200 Subject: [PATCH] changed cat path --- motd.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/motd.sh b/motd.sh index a13071f..979af5c 100755 --- a/motd.sh +++ b/motd.sh @@ -19,25 +19,25 @@ output() { if [ -f "/usr/games/lolcat" ]; then lx="/usr/games/lolcat"; else lx="/usr/bin/lolcat"; fi case "$val" in 0) - /bin/cat $MOTDPATH/motd + /usr/bin/cat $MOTDPATH/motd uname $UNAMEARG uptime $UPTIMEARG ;; 1) - /bin/cat $MOTDPATH/motd | $lx + /usr/bin/cat $MOTDPATH/motd | $lx uname $UNAMEARG | $lx uptime $UPTIMEARG | $lx ;; 2) - /bin/cat $MOTDPATH/motd | awk '{ z = '$tput_cols' - length; y = int(z / 2); x = z - y; printf "%*s%s%*s\n", x, "", $0, y, ""; }' + /usr/bin/cat $MOTDPATH/motd | awk '{ z = '$tput_cols' - length; y = int(z / 2); x = z - y; printf "%*s%s%*s\n", x, "", $0, y, ""; }' uname $UNAMEARG | awk '{ z = '$tput_cols' - length; y = int(z / 2); x = z - y; printf "%*s%s%*s\n", x, "", $0, y, ""; }' uptime $UPTIMEARG | awk '{ z = '$tput_cols' - length; y = int(z / 2); x = z - y; printf "%*s%s%*s\n", x, "", $0, y, ""; }' ;; 3) - /bin/cat $MOTDPATH/motd | awk '{ z = '$tput_cols' - length; y = int(z / 2); x = z - y; printf "%*s%s%*s\n", x, "", $0, y, ""; }' | $lx + /usr/bin/cat $MOTDPATH/motd | awk '{ z = '$tput_cols' - length; y = int(z / 2); x = z - y; printf "%*s%s%*s\n", x, "", $0, y, ""; }' | $lx uname $UNAMEARG | awk '{ z = '$tput_cols' - length; y = int(z / 2); x = z - y; printf "%*s%s%*s\n", x, "", $0, y, ""; }' | $lx uptime $UPTIMEARG | awk '{ z = '$tput_cols' - length; y = int(z / 2); x = z - y; printf "%*s%s%*s\n", x, "", $0, y, ""; }' | $lx ;;