start
This commit is contained in:
10
commands/secret.sh
Executable file
10
commands/secret.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#! /bin/bash
|
||||
|
||||
if [[ -f "secret" ]]; then
|
||||
echo "Found a SECRET! Shhhhh..." >&2
|
||||
SECRET=$(<secret)
|
||||
else
|
||||
echo "Creating New SECRET! Shhhhh..." >&2
|
||||
openssl rand -hex 32 >./secret
|
||||
SECRET=$(<secret)
|
||||
fi
|
||||
Reference in New Issue
Block a user