output: Media — success status visible, not-configured and disabled exits now echo
This commit is contained in:
@@ -103,7 +103,7 @@ unset _key
|
||||
|
||||
# HOST guard — Lidarr runs on HOST1 only
|
||||
if [[ -z "$LIDARR_URL" ]]; then
|
||||
log "Lidarr not configured for $MY_ID — nothing to do"
|
||||
echo "Lidarr not configured for $MY_ID — skipping"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
||||
@@ -222,7 +222,7 @@ elif [[ ${#FAILED[@]} -gt 0 ]]; then
|
||||
notify "Media permissions failed on $(hostname) — ${FAILED[*]}" \
|
||||
"Media Permissions" "warning"
|
||||
else
|
||||
log "$ICON_DONE Status: done — ${#UPDATED[@]} shares updated"
|
||||
echo "$ICON_DONE Status: done — ${#UPDATED[@]} shares updated"
|
||||
fi
|
||||
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
||||
|
||||
|
||||
@@ -84,7 +84,7 @@ parse_args "${_FILTERED[@]}"
|
||||
# ==============================================================================================
|
||||
# ━━━ Setup ━━━
|
||||
# ==============================================================================================
|
||||
[[ "${PLAY_SYNC_ENABLED:-true}" != "true" ]] && log "Play state sync disabled" && exit 0
|
||||
[[ "${PLAY_SYNC_ENABLED:-true}" != "true" ]] && echo "Play state sync disabled" && exit 0
|
||||
|
||||
SYNC_DAYS="${PLAY_SYNC_DAYS:-90}"
|
||||
SYNC_TYPES="${PLAY_SYNC_TYPES:-Movie,Episode,Audio}"
|
||||
|
||||
@@ -95,7 +95,7 @@ acquire_lock
|
||||
detect_hosts
|
||||
|
||||
if [[ -z "$RADARR_URL" ]]; then
|
||||
log "Radarr not configured for $MY_ID — nothing to do"
|
||||
echo "Radarr not configured for $MY_ID — skipping"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
||||
@@ -94,7 +94,7 @@ acquire_lock
|
||||
detect_hosts
|
||||
|
||||
if [[ -z "$SONARR_URL" ]]; then
|
||||
log "Sonarr not configured for $MY_ID — nothing to do"
|
||||
echo "Sonarr not configured for $MY_ID — skipping"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user