From dd97fdc694e7493c580528686f48b5d1cfce62cf Mon Sep 17 00:00:00 2001 From: Sean Wheller Date: Mon, 12 Aug 2019 19:50:08 +0200 Subject: [PATCH] fix unary operator --- depends.sh | 2 +- maintenance.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/depends.sh b/depends.sh index 174b256..77cd21b 100755 --- a/depends.sh +++ b/depends.sh @@ -4,7 +4,7 @@ echo "${_GREEN}INSTALL DEPENDS STARTED${_RESET}" -if [ $_APT_DEPENDS = 1 ]; then +if [ "$_APT_DEPENDS" -eq "1" ]; then # Install xmrig depends sudo apt install -y software-properties-common git build-essential cmake libuv1-dev libssl-dev libmicrohttpd-dev libhwloc-dev gcc g++ diff --git a/maintenance.sh b/maintenance.sh index 8ade72b..c706621 100755 --- a/maintenance.sh +++ b/maintenance.sh @@ -2,7 +2,7 @@ echo "${_GREEN}MAINTENANCE STARTED${_RESET}" -if [ $_APT_MAINETANCE = 1 ]; then +if [ "$_APT_MAINETANCE" -eq "1" ]; then sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y && sudo apt autoclean