From 0d0d4d0e018122d9fa877af0c3a42dc604b75de7 Mon Sep 17 00:00:00 2001 From: anthraxx Date: Tue, 1 Mar 2016 20:10:57 +0100 Subject: [PATCH] fix copy pasta error --- shared | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shared b/shared index 2c697cb..9ab918c 100755 --- a/shared +++ b/shared @@ -13,7 +13,8 @@ if [ -z "${password}" ]; then echo "WARNING: password in ${config} is missing!" >&2 fi +# get tresor config value in a safe way tresor="$(grep tresor ${basedir}/${config} 2>/dev/null|cut -d= -f2|tr -d ' \t')" -if [ -z "${password}" ]; then +if [ -z "${tresor}" ]; then echo "WARNING: tresor in ${config} is missing!" >&2 fi