mirror of
https://git.zepheris.com/zepheris/LinuxRMM-Script.git
synced 2024-11-23 14:07:19 +00:00
Update rmmagent-linux.sh
Updated code to check unzip installation.
This commit is contained in:
parent
5e8cfdde0d
commit
46e483d803
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user