Update rmmagent-linux.sh

Updated code to check unzip installation.
This commit is contained in:
Julianno Nogueira 2022-12-16 11:42:29 -03:00 committed by GitHub
parent 5e8cfdde0d
commit 46e483d803
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
if ! command -v unzip &> /dev/null check_zip=$(which unzip 2> /dev/null)
then if [[ $check_zip == "" || $check_zip =~ .*"no unzip".* ]]; then
echo "unzip could not be found. Please install unzip." echo "unzip could not be found. Please install unzip."
exit 0 exit 0
fi fi