DUNIKEYFILE

This commit is contained in:
qo-op 2020-04-30 00:40:29 +02:00
parent b2de15e0d5
commit d9cb8eb5a2
1 changed files with 2 additions and 2 deletions

View File

@ -13,8 +13,8 @@ MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized
# qo-op
#############
DUNKEYFILE="$1"
[[ ! ${DUNIKEYFILE} ]] && DUNKEYFILE="./secret.dunikey"
[[ ! ${DUNIKEYFILE} ]] && DUNKEYFILE="~/.ssb/secret.dunikey"
[[ ! ${DUNIKEYFILE} ]] && DUNIKEYFILE="./secret.dunikey"
[[ ! ${DUNIKEYFILE} ]] && DUNIKEYFILE="~/.ssb/secret.dunikey"
[[ ! -f ${DUNIKEYFILE} ]] && echo "ERROR secret.dunikey unfound" && exit 1
pub=$(cat ${DUNIKEYFILE} | grep "pub" | cut -d ' ' -f 2)