From 438a86a78fcc4d01bad3967365060f5d9b5b1a2b Mon Sep 17 00:00:00 2001 From: Super Manito <68613938+SuperManito@users.noreply.github.com> Date: Fri, 22 Oct 2021 14:34:59 +0800 Subject: [PATCH] bug fix --- ChangeMirrors.sh | 4 ++-- DockerInstallation.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ChangeMirrors.sh b/ChangeMirrors.sh index 58b29bc..68fc4af 100644 --- a/ChangeMirrors.sh +++ b/ChangeMirrors.sh @@ -1,4 +1,4 @@ -#!/bin/env bash +#!/bin/bash ## Author: SuperManito ## Modified: 2021-10-17 ## License: GPL-2.0 @@ -11,7 +11,7 @@ function AuthorSignature() { elif [ ${SYSTEM_FACTIONS} = ${SYSTEM_REDHAT} ]; then yum install -y figlet toilet >/dev/null 2>&1 fi - if [ $? -eq 0 ]; then + if [ -x /usr/bin/toilet ]; then echo -e "\n$(toilet -f slant -F border --gay SuperManito)\n" else echo -e '\n\033[35m _____ __ ___ _ __ \033[0m' diff --git a/DockerInstallation.sh b/DockerInstallation.sh index bff5dd2..a1c1178 100644 --- a/DockerInstallation.sh +++ b/DockerInstallation.sh @@ -11,7 +11,7 @@ function AuthorSignature() { elif [ ${SYSTEM_FACTIONS} = ${SYSTEM_REDHAT} ]; then yum install -y figlet toilet >/dev/null 2>&1 fi - if [ $? -eq 0 ]; then + if [ -x /usr/bin/toilet ]; then echo -e "\n$(toilet -f slant -F border --gay SuperManito)\n" else echo -e '\n\033[35m _____ __ ___ _ __ \033[0m'