From 46e483d803ca56342ed66dbb07a2d336a568c2d4 Mon Sep 17 00:00:00 2001 From: Julianno Nogueira <31103443+netvolt@users.noreply.github.com> Date: Fri, 16 Dec 2022 11:42:29 -0300 Subject: [PATCH] Update rmmagent-linux.sh Updated code to check unzip installation. --- rmmagent-linux.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rmmagent-linux.sh b/rmmagent-linux.sh index dbd05ee..48cc147 100644 --- a/rmmagent-linux.sh +++ b/rmmagent-linux.sh @@ -1,6 +1,6 @@ #!/bin/bash -if ! command -v unzip &> /dev/null -then +check_zip=$(which unzip 2> /dev/null) +if [[ $check_zip == "" || $check_zip =~ .*"no unzip".* ]]; then echo "unzip could not be found. Please install unzip." exit 0 fi