feat(del-wg): now checking if run as root
This commit is contained in:
@@ -1,5 +1,10 @@
|
|||||||
#! /usr/bin/env bash
|
#! /usr/bin/env bash
|
||||||
|
|
||||||
|
if [ $(id -u) -ne 0 ]; then
|
||||||
|
echo "[!!] This program must be run as root"
|
||||||
|
exit -1
|
||||||
|
fi
|
||||||
|
|
||||||
if [ $# -ne 1 ]; then
|
if [ $# -ne 1 ]; then
|
||||||
echo "[!!] I (just) need the base64 pubkey of the target client"
|
echo "[!!] I (just) need the base64 pubkey of the target client"
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user