From: xf0r3m Date: Tue, 31 Oct 2023 18:24:13 +0000 (+0100) Subject: Poprawienie pliku librewolf-autobuild.sh. Usunięcie pliku colors3.sh X-Git-Url: https://gitweb.morketsmerke.org/?a=commitdiff_plain;h=eae37eb161263fcfdf86fd1ebabb2b69c7317735;p=backup.git Poprawienie pliku librewolf-autobuild.sh. Usunięcie pliku colors3.sh --- diff --git a/colors3.sh b/colors3.sh deleted file mode 100755 index 15d25da..0000000 --- a/colors3.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash - -# Its NOT my solution. Works only with standard font. -# Taken from: https://stackoverflow.com/a/70439210 (little bit modified, the -# awk commands and printf command for better understand) - -BLUE="\e[1;94m"; -RED="\e[1;91m"; -CYAN="\e[1;96m"; -ENDCOLOR="\e[0m"; - -echo -n "immu" | figlet > /tmp/immu.file; -echo -n "de" | figlet > /tmp/de.file; -echo -n "x" | figlet > /tmp/x.file; - -l1=$(awk '{max=length($0)}END{print max}' /tmp/immu.file); -l1=$(expr $l1 - 10); -l2=$(awk '{max=length($0)}END{print max}' /tmp/de.file); -l2=$(expr $l2 - 10); - -while IFS="@" read -r p1 p2 p3 -do - #printf "${BLUE}%-*s${RED}%-*s${CYAN}%s${ENDCOLOR}\n" "${l1}" "${p1}" "${l2}" "${p2}" "${p3}" - printf "${BLUE}%-0s${RED}%-${l2}s${CYAN}%s${ENDCOLOR}\n" "${p1}" "${p2}" "${p3}" -done < <(paste -d"@" /tmp/immu.file /tmp/de.file /tmp/x.file) - diff --git a/librewolf-autobuild.sh b/librewolf-autobuild.sh index f126bdc..55f817f 100644 --- a/librewolf-autobuild.sh +++ b/librewolf-autobuild.sh @@ -28,7 +28,7 @@ idxLWVER=$(grep '^LWVER' /tmp/immudex-base-file.txt | cut -d "'" -f 2) # Determinig is there a new LibreWolf version if [ "$idxLWVER" = "$LWVER" ]; then echo "There is no new version of LibreWolf"; else - "There is a new version of LibreWolf"; + echo "There is a new version of LibreWolf"; # Check if 'librewolf' dir exist, if it's true remove it and create a new one. if [ -d ~/librewolf ]; then rm -rf ~/librewolf; fi