mirror of
https://github.com/vincenthsu/systemd-ngrok.git
synced 2025-05-09 13:06:16 +00:00
Checking wget and unzip command firstly
This commit is contained in:
parent
6f3cf2642f
commit
6a60d66a7c
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