mirror of
https://github.com/netvolt/LinuxRMM-Script.git
synced 2024-11-21 23:23:08 +01: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