feat(del-wg): now checking if run as root

This commit is contained in:
2021-10-13 15:10:08 +00:00
parent 118b8ed29c
commit 3a055f4d2f

View File

@@ -1,5 +1,10 @@
#! /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
echo "[!!] I (just) need the base64 pubkey of the target client"
exit 1