mirror of
https://git.zepheris.com/zepheris/LinuxRMM-Script.git
synced 2024-11-26 20:27:19 +00:00
Added a dependency check for unzip. If unzip is not found the script will exit.
This commit is contained in:
parent
81e9aa6fdc
commit
ff0eb12f2a
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user