From: xf0r3m Date: Thu, 28 Sep 2023 15:35:09 +0000 (+0200) Subject: Zmiana wyƛwietlania ASCII Art-u w poleceniu 'immudex-motd2' X-Git-Url: https://gitweb.morketsmerke.org/?a=commitdiff_plain;h=05227bf8681e736e3e66ad4cb10b89013c23c064;p=immudex-testing.git Zmiana wyƛwietlania ASCII Art-u w poleceniu 'immudex-motd2' --- 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}"; + +}