From dd4b1fb6baa68d64d8bdc8f6ce5df55dde084f65 Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Thu, 27 Feb 2025 22:58:51 -0700 Subject: [PATCH] import: Fix var -n > -eq --- usr/local/share/bastille/import.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr/local/share/bastille/import.sh b/usr/local/share/bastille/import.sh index 24642979..d76c8858 100644 --- a/usr/local/share/bastille/import.sh +++ b/usr/local/share/bastille/import.sh @@ -57,9 +57,9 @@ OPT_ZRECV="-u" USER_IMPORT= while [ "$#" -gt 0 ]; do case "${1}" in - -h|--help|help) + -h|--help|help) usage - ;; + ;; -f|--force) OPT_FORCE="1" shift @@ -120,7 +120,7 @@ validate_archive() { fi else # Check if user opt to force import - if [ -n "${OPT_FORCE}" ]; then + if [ "${OPT_FORCE}" -eq 1 ]; then warn "Warning: Skipping archive validation!" else error_exit "Checksum file not found. See 'bastille import [option(s)] FILE'."