Added a dependency check for unzip. If unzip is not found the script will exit.

This commit is contained in:
mattchis 2022-12-08 14:00:16 -07:00
parent 81e9aa6fdc
commit ff0eb12f2a

View File

@ -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"