Merge pull request #886 from BastilleBSD/tschettervictor-patch-1

import: Fix var -n > -eq
This commit is contained in:
tschettervictor
2025-02-27 22:59:06 -07:00
committed by GitHub

View File

@@ -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'."