]> gitweb.morketsmerke.org Git - immudex-testing.git/commitdiff
Zmiana wyƛwietlania ASCII Art-u w poleceniu 'immudex-motd2'
authorxf0r3m <jakubstasinski@protonmail.com>
Thu, 28 Sep 2023 15:35:09 +0000 (17:35 +0200)
committerxf0r3m <jakubstasinski@protonmail.com>
Thu, 28 Sep 2023 15:35:09 +0000 (17:35 +0200)
tools/immudex-motd2
tools/library.sh

index 9878c1da30a3cfa8607502414d9a90abaa3b4e89..3845a63364937d1da08450a731751897d09296dc 100755 (executable)
@@ -1,6 +1,8 @@
 #!/bin/bash
 
-/usr/bin/figlet immudex;
+#/usr/bin/figlet immudex;
+source /usr/local/bin/library.sh;
+ascii_colors;
 echo;
 echo "Today is: $(date)";
 echo;
index 08a5aea085271aabee4a4cc449b452941625260c..8c4657957b758db34325f94fb04650f4b99dafc4 100755 (executable)
@@ -24,7 +24,7 @@ function check_distro_commit() {
     if [ -d /tmp/immudex-testing ]; then
       $(cd /tmp/immudex-testing && git pull -q);
     else
-      git clone -q https://git.morketsmerke.org/git/immudex-testing /tmp/immudex-testing;
+      git clone -q https://github.com/xf0r3m/immudex-testing /tmp/immudex-testing;
     fi
     latestVersion=$(cd /tmp/immudex-testing && git log --pretty=oneline | head -1 | cut -d " " -f 1);
     if [ "$1" ] && [ "$1" == "--print" ]; then
@@ -39,3 +39,19 @@ function check_distro_commit() {
     return 255;
   fi
 }
+
+function ascii_colors() {
+
+BLUE="\e[1;94m";
+RED="\e[1;91m";
+CYAN="\e[1;96m";
+ENDCOLOR="\e[0m";
+
+echo -e "${BLUE} _                           ${RED}    _      ${CYAN}      ${ENDCOLOR}";
+echo -e "${BLUE}(_)_ __ ___  _ __ ___  _   _ ${RED} __| | ___${CYAN}__  __${ENDCOLOR}";
+echo -e "${BLUE}| | '_ \` _ \| '_ \` _ \| | | |${RED}/ _\` |/ _ \\\\${CYAN} \/ /${ENDCOLOR}";
+echo -e "${BLUE}| | | | | | | | | | | | |_| |${RED} (_| |  __/${CYAN}>  < ${ENDCOLOR}";
+echo -e "${BLUE}|_|_| |_| |_|_| |_| |_|\__,_|${RED}\__,_|\___/${CYAN}_/\_\\";
+echo -e "${ENDCOLOR}";
+
+}