mirror of
https://git.zepheris.com/zepheris/LinuxRMM-Script.git
synced 2024-11-27 04:37:17 +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
|
#!/bin/bash
|
||||||
|
if ! command -v unzip &> /dev/null
|
||||||
|
then
|
||||||
|
echo "unzip could not be found. Please install unzip."
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ $1 == "" ]]; then
|
if [[ $1 == "" ]]; then
|
||||||
echo "First argument is empty !"
|
echo "First argument is empty !"
|
||||||
echo "Type help for more information"
|
echo "Type help for more information"
|
||||||
|
Loading…
Reference in New Issue
Block a user