Update rmmagent-linux.sh

Updated code to check unzip installation.
This commit is contained in:
Julianno Nogueira authored and GitHub committed 2022-12-16 11:42:29 -03:00
1 parent 5e8cfdde0d
commit 46e483d803
1 file changed
+2 -2
+2 -2
View File
@@ -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