Skip to content

Commit a0e5de3

Browse files
author
buildplan
committed
fix: Add default PATH to ensure cron execution
1 parent 8e8c17d commit a0e5de3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

restic-backup.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
#!/usr/bin/env bash
22

33
# =================================================================
4-
# Restic Backup Script v0.38.2 - 2025.10.08
4+
# Restic Backup Script v0.38.3 - 2025.10.18
55
# =================================================================
66

7+
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
78
set -euo pipefail
89
umask 077
910

1011
# --- Script Constants ---
11-
SCRIPT_VERSION="0.38.2"
12+
SCRIPT_VERSION="0.38.3"
1213
SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
1314
CONFIG_FILE="${SCRIPT_DIR}/restic-backup.conf"
1415
LOCK_FILE="/tmp/restic-backup.lock"

0 commit comments

Comments
 (0)