add tresor
This commit is contained in:
parent
2ddd44d402
commit
ef3748efcd
3 changed files with 13 additions and 0 deletions
|
@ -1 +1,2 @@
|
|||
password=sesamaenderdich
|
||||
tresor=1111
|
||||
|
|
5
shared
5
shared
|
@ -12,3 +12,8 @@ password="$(grep password ${basedir}/${config} 2>/dev/null|cut -d= -f2|tr -d ' \
|
|||
if [ -z "${password}" ]; then
|
||||
echo "WARNING: password in ${config} is missing!" >&2
|
||||
fi
|
||||
|
||||
tresor="$(grep tresor ${basedir}/${config} 2>/dev/null|cut -d= -f2|tr -d ' \t')"
|
||||
if [ -z "${password}" ]; then
|
||||
echo "WARNING: tresor in ${config} is missing!" >&2
|
||||
fi
|
||||
|
|
7
tresor
Executable file
7
tresor
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
. $(dirname $(readlink "$0"))/shared
|
||||
|
||||
echo "Welcome to the Vault!"
|
||||
|
||||
echo "---------------------"
|
||||
echo "Your Key is: ${tresor}"
|
Loading…
Reference in a new issue