mirror of
https://github.com/hackacad/bastille.git
synced 2026-01-03 19:23:42 +01:00
[WIP] shellcheck linting
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -203,6 +203,7 @@ list_limit(){
|
||||
}
|
||||
|
||||
list_import(){
|
||||
# shellcheck disable=SC2010
|
||||
ls "${bastille_backupsdir}" | grep -v ".sha256$"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user