]> gitweb.morketsmerke.org Git - backup.git/commitdiff
Poprawienie bledu w skrypcie motd
authorxf0r3m <jakubstasinski@protonmail.com>
Thu, 6 Feb 2025 11:55:58 +0000 (11:55 +0000)
committerxf0r3m <jakubstasinski@protonmail.com>
Thu, 6 Feb 2025 11:55:58 +0000 (11:55 +0000)
motd

diff --git a/motd b/motd
index 219b6e05098781449ee7bd2f6931e2d42f330fa4..0bb62897bf3f4babf08f3aebf8eed84a637a60ab 100755 (executable)
--- a/motd
+++ b/motd
@@ -22,7 +22,7 @@ for mountPoint in $mountPointsList; do
     echo -e "\t$(echo $mountPoint | sed 's,\$,,'):\t\t${diskFree}/${diskSize}\t(${diskUsage_perc}%)";
   fi
 done
-echo -e "  \tIP: $(ip addr show $(sed -n '2p' /proc/net/route | awk '{printf $1}') | grep 'inet\ ' | awk '{printf $2"\n"}')
+echo -e "  \tIP: $(ip addr show $(sed -n '2p' /proc/net/route | awk '{printf $1}') | grep 'inet\ ' | awk '{printf $2"\n"}')";
 echo -e "  \tPROCESSES: $(ps -aux | wc -l | awk '{printf $1}')";
 if $(uptime | grep -q 'day'); then
   utime=$(uptime | awk '{printf $3" "$4" "$5}' | sed -e 's/\,$//' -e 's,:,h ,');