We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9006792 + 5174c27 commit 2070e84Copy full SHA for 2070e84
usr/local/share/bastille/export.sh
@@ -417,13 +417,12 @@ jail_export() {
417
error_exit "[ERROR]: Failed to export jail: ${TARGET}"
418
else
419
if [ -z "${USER_EXPORT}" ]; then
420
-
421
# Generate container checksum file
422
cd "${bastille_backupsdir}" || error_exit "[ERROR]: Failed to change to directory: ${bastille_backupsdir}"
423
- sha256 -q "${TARGET}_${DATE}${FILE_EXT}" > "${TARGET}_${DATE}.sha256"
424
+ if ! sha256 -q "${TARGET}_${DATE}${FILE_EXT}" > "${TARGET}_${DATE}.sha256"; then
+ error_exit "[ERROR]: Failed to generate sha256 file."
+ fi
425
info "\nExported '${bastille_backupsdir}/${TARGET}_${DATE}${FILE_EXT}' successfully."
426
427
fi
428
exit 0
429
0 commit comments