use quotes when checking empty strings in scripts

this is far less error-prone

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2023-10-07 05:36:52 +01:00
parent 0fad3497b8
commit 4708da2ca9
6 changed files with 22 additions and 22 deletions
+1 -1
View File
@@ -105,7 +105,7 @@ create_release_archive()
fail()
{
[ -z ${srcdir} ] || rm -Rf "${srcdir}" 1>/dev/null 2>/dev/null || :
[ -z "${srcdir}" ] || rm -Rf "${srcdir}" 1>/dev/null 2>/dev/null || :
fail "${1}"
}