From 2b69b4b3c1168552ca98acd3095ae05c1ce32ba2 Mon Sep 17 00:00:00 2001 From: deajan Date: Thu, 29 Dec 2016 00:47:48 +0100 Subject: [PATCH] Fix typos --- dev/n_obackup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dev/n_obackup.sh b/dev/n_obackup.sh index 1742582..9d379c5 100755 --- a/dev/n_obackup.sh +++ b/dev/n_obackup.sh @@ -1164,11 +1164,11 @@ function DecryptFiles { # Detect if GnuPG >= 2.1 that does not allow automatic pin entry anymore cryptToolVersion=$($CRYPT_TOOL --version | head -1 | awk '{print $3}') - cryptToolMajorVersion={$cryptToolVersion%%.*} + cryptToolMajorVersion=${cryptToolVersion%%.*} cryptToolSubVersion=${cryptToolVersion#*.} cryptToolSubVersion=${cryptToolSubVersion%.*} - if [ $cryptToolMajorVersion -eq 2 ] && [ $cryptToolsubVersion -ge 1 ]; then + if [ $cryptToolMajorVersion -eq 2 ] && [ $cryptToolSubVersion -ge 1 ]; then additionalParameters="--pinentry-mode loopback" fi