interruption handling
All checks were successful
Container Publish / on-success-skip (push) Has been skipped
Container Publish / build-image (amd64) (push) Successful in 41s
Container Publish / build-image (arm64) (push) Successful in 47s
Container Publish / update docker manifest (push) Successful in 11s
Vulnerability Scan / Daily Vulnerability Scan (arm64) (push) Successful in 8s
Vulnerability Scan / Daily Vulnerability Scan (amd64) (push) Successful in 28s

This commit is contained in:
2025-12-14 22:01:29 +01:00
parent 1ebd6512d8
commit 458ce5534b

View File

@@ -23,6 +23,13 @@ cleanup() {
echo "Removed temporary file"
}
trap interrupt INT
interrupt() {
echo "Backup interrupted"
echo "interrupted" > "${STATUS_FILE}"
exit 1
}
if [ ! -f "${RCLONE_CONFIG_FILE}" ]; then
echo "Rclone config file not found"
exit 1