]> gitweb.morketsmerke.org Git - backup.git/commitdiff
Poprawienie pliku librewolf-autobuild.sh. Usunięcie pliku colors3.sh
authorxf0r3m <jakubstasinski@protonmail.com>
Tue, 31 Oct 2023 18:24:13 +0000 (19:24 +0100)
committerxf0r3m <jakubstasinski@protonmail.com>
Tue, 31 Oct 2023 18:24:13 +0000 (19:24 +0100)
colors3.sh [deleted file]
librewolf-autobuild.sh

diff --git a/colors3.sh b/colors3.sh
deleted file mode 100755 (executable)
index 15d25da..0000000
+++ /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)
-
index f126bdc7551f34f2b814003bec507b1f05a03b31..55f817f0eb43faf4aa419ffa2a5f51e67f285cb4 100644 (file)
@@ -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