mirror of
https://github.com/vincenthsu/systemd-ngrok.git
synced 2025-02-06 06:55:30 +00:00
Merge pull request #8 from open-source-contributions/improve_install
Checking wget and unzip command firstly
This commit is contained in:
commit
c7317290c9
10
install.sh
10
install.sh
|
@ -1,5 +1,15 @@
|
||||||
#!/usr/bin/env bash
|
#!/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
|
if (( $EUID != 0 )); then
|
||||||
echo "Please run as root"
|
echo "Please run as root"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user