Merge pull request #8 from open-source-contributions/improve_install

Checking wget and unzip command firstly
This commit is contained in:
Vincent Hsu 2020-05-07 10:27:19 +08:00 committed by GitHub
commit c7317290c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,15 @@
#!/usr/bin/env bash
if [ ! $(which wget) ]; then
echo 'Please install wget package'
exit 1
fi
if [ ! $(which unzip) ]; then
echo 'Please install zip package'
exit 1
fi
if (( $EUID != 0 )); then
echo "Please run as root"
exit 1