Skip to content

Commit

Permalink
Merge pull request #38 from papadritta/workflow
Browse files Browse the repository at this point in the history
Update test.sh
  • Loading branch information
papadritta authored Jan 26, 2025
2 parents 64aedc9 + 72d277a commit fed2fc5
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions testing/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ check_installed() {
systemctl is-active --quiet "$1" && echo "true" || echo "false"
}

printLogo() {
printLogo1() {
echo -e "\e[34m"
echo "============================================================="
echo " ███████╗ ██████╗ ██╗ ██████╗ ██████╗ ███╗ ██╗"
Expand All @@ -21,10 +21,21 @@ printLogo() {
echo -e "\e[39m"
}

printCyan() { echo -e "\e[96m$1\e[39m"; }
printLogo2() {
echo -e "\e[34m"
echo "==========================================================================================="
echo " ██╗ ██╗ ██████╗ ██╗ ██╗ ████████╗ ██╗ ██╗ ██████╗ ██╗ ██╗ ██████╗ ███████╗"
echo " ██║ ██║ ██╔════╝ ██║ ██║ ╚══██╔══╝ ██║ ██║ ██╔═══██╗ ██║ ██║ ██╔════╝ ██╔════╝"
echo " ██║ ██║ ██║ ███╗ ███████║ ██║ ███████║ ██║ ██║ ██║ ██║ ██████╗ █████╗ "
echo " ██║ ██║ ██║ ██║ ██╔══██║ ██║ ██╔══██║ ██║ ██║ ██║ ██║ ╚═══██ ██╔══╝ "
echo " ███████╗ ██║ ██████╔╝ ██║ ██║ ██║ ██║ ██║ ╚██████╔╝ ╚██████╔╝ ██████╔╝ ███████╗"
echo " ╚══════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═════╝ ╚══════╝"
echo "==========================================================================================="
echo -e "\e[39m"
}

printCyan() { echo -e "\e[96m$1\e[39m"; }
printRed() { echo -e "\e[91m$1\e[39m"; }

printLine() { echo "============================================================="; }

loadProfile() {
Expand All @@ -41,7 +52,8 @@ loadProfile() {
fi
}

printLogo
printLogo1
printLogo2
loadProfile

printCyan "Updating packages..." && sleep 1
Expand Down Expand Up @@ -191,15 +203,14 @@ install_erigon "$ERIGON_VERSION"
install_lighthouse "$LIGHTHOUSE_VERSION"

printLine

printCyan "Check Erigon status..." && sleep 1
printCyan "Check Erigon status..."
if [[ $(systemctl is-active erigon) == "active" ]]; then
echo -e "Your Erigon \e[32mis installed and running correctly\e[39m!"
else
echo -e "Your Erigon \e[31mwas not installed correctly\e[39m. Please check logs."
fi

printCyan "Check Lighthouse Beacon status..." && sleep 1
printCyan "Check Lighthouse Beacon status..."
if [[ $(systemctl is-active lighthousebeacon) == "active" ]]; then
echo -e "Your Lighthouse Beacon \e[32mis installed and running correctly\e[39m!"
else
Expand Down

0 comments on commit fed2fc5

Please sign in to comment.