added safe guards to all scripts that need it. all reference comm.sh like it should be
This commit is contained in:
@@ -81,6 +81,8 @@ if [[ ! -d "$LIDARR_MUSIC_ROOT" ]]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
acquire_lock "wait"
|
||||
|
||||
success "Config validated"
|
||||
|
||||
# -----------------------------------------------------------------------------------------------
|
||||
@@ -156,6 +158,11 @@ is_protected_file() {
|
||||
echo ""
|
||||
echo "━━━ $ICON_SYNC Fetching Lidarr Tracked Files ━━━"
|
||||
|
||||
check_api "$LIDARR_URL" "Lidarr" || {
|
||||
notify "Lidarr cleanup aborted on $(hostname) — API unreachable" "Lidarr Cleanup" "warning"
|
||||
exit 1
|
||||
}
|
||||
|
||||
info "Querying Lidarr API: $LIDARR_URL"
|
||||
|
||||
TRACKFILE_RESPONSE=$(lidarr_api "trackfile") || {
|
||||
|
||||
Reference in New Issue
Block a user