1
0
Fork 0

Also, gen-salt demands to be runned under root, so let's check for it and fail if it doesn't.

This commit is contained in:
Alexander Andreev 2023-05-24 22:58:32 +04:00
parent 14ec537d82
commit 3696e1dfe1
Signed by: Arav
GPG Key ID: D22A817D95815393
1 changed files with 5 additions and 0 deletions

View File

@ -1,5 +1,10 @@
#!/usr/bin/sh
if [[ $EUID -ne 0 ]]; then
echo "Must run as root!" >&2;
exit 1
fi
if [[ $1 ]]; then
char_num=$1;
else