From 59630a287b205935a2567fa01b50cb3c4dceb1b4 Mon Sep 17 00:00:00 2001 From: Jiri Kucera Date: Mon, 25 May 2020 08:47:42 +0200 Subject: [PATCH] tests: Fix unbound variable and unknown option --- tests/Sanity/basic-sanity/runtest.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Sanity/basic-sanity/runtest.sh b/tests/Sanity/basic-sanity/runtest.sh index 26909ca..08d7b97 100755 --- a/tests/Sanity/basic-sanity/runtest.sh +++ b/tests/Sanity/basic-sanity/runtest.sh @@ -68,8 +68,8 @@ _CERT_PASS="certpass" _NEW_LUKS_PASS="newlukspass" _NEW_LUKS_PASS_ASYM="newlukspass-asym" -_LANG_BACKUP="${LANG}" -_LC_ALL_BACKUP="${LC_ALL}" +_LANG_BACKUP="${LANG:-}" +_LC_ALL_BACKUP="${LC_ALL:-}" _TEMP_DIR="" _VOLUME="" @@ -116,7 +116,7 @@ function Setup() { _VOLUME="${_Result}" AtCleanup Cleanup_DestroyVolume - if ! CreateCertificate --name "${_ESCROW}" --dest "${_TEMP_DIR}"; then + if ! CreateCertificate --name "${_ESCROW}"; then return $? fi