tests: Fix unbound variable and unknown option

This commit is contained in:
Jiri Kucera 2020-05-25 08:47:42 +02:00
parent 828b38bd12
commit 59630a287b

View File

@ -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