[WIP] shellcheck linting

This commit is contained in:
Juan David Hurtado G
2024-12-08 21:37:26 -05:00
parent 7927385458
commit 7c000a07d8
2 changed files with 2 additions and 1 deletions

View File

@@ -371,7 +371,7 @@ jail_export() {
else
if [ -z "${USER_EXPORT}" ]; then
# Generate container checksum file
cd "${bastille_backupsdir}"
cd "${bastille_backupsdir}" || error_exit "Failed to change directory."
sha256 -q "${TARGET}_${DATE}${FILE_EXT}" > "${TARGET}_${DATE}.sha256"
info "Exported '${bastille_backupsdir}/${TARGET}_${DATE}${FILE_EXT}' successfully."
fi

View File

@@ -203,6 +203,7 @@ list_limit(){
}
list_import(){
# shellcheck disable=SC2010
ls "${bastille_backupsdir}" | grep -v ".sha256$"
}