From ff0eb12f2a739839462af0fece601d0b56589892 Mon Sep 17 00:00:00 2001 From: mattchis <1776285+mattchis@users.noreply.github.com> Date: Thu, 8 Dec 2022 14:00:16 -0700 Subject: [PATCH] Added a dependency check for unzip. If unzip is not found the script will exit. --- rmmagent-linux.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rmmagent-linux.sh b/rmmagent-linux.sh index 6ae0f16..5cd3c19 100644 --- a/rmmagent-linux.sh +++ b/rmmagent-linux.sh @@ -1,4 +1,10 @@ #!/bin/bash +if ! command -v unzip &> /dev/null +then + echo "unzip could not be found. Please install unzip." + exit 0 +fi + if [[ $1 == "" ]]; then echo "First argument is empty !" echo "Type help for more information"