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