From 05227bf8681e736e3e66ad4cb10b89013c23c064 Mon Sep 17 00:00:00 2001 From: xf0r3m Date: Thu, 28 Sep 2023 17:35:09 +0200 Subject: [PATCH] =?utf8?q?Zmiana=20wy=C5=9Bwietlania=20ASCII=20Art-u=20w?= =?utf8?q?=20poleceniu=20'immudex-motd2'?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- tools/immudex-motd2 | 4 +++- tools/library.sh | 18 +++++++++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/tools/immudex-motd2 b/tools/immudex-motd2 index 9878c1d..3845a63 100755 --- a/tools/immudex-motd2 +++ b/tools/immudex-motd2 @@ -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; diff --git a/tools/library.sh b/tools/library.sh index 08a5aea..8c46579 100755 --- a/tools/library.sh +++ b/tools/library.sh @@ -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}"; + +} -- 2.39.5