fix: silent curl

This commit is contained in:
Kyle Kroboth 2025-03-12 00:12:20 -04:00
parent 37df296a9c
commit 2a0b6caeac

View File

@ -106,7 +106,7 @@ wait_for_api
FFMPEG_UID=$(curl -s -X 'GET' "http://localhost:19200/api/variable/name/ffmpeg" -H 'accept: application/json' | jq -r '.Uid') FFMPEG_UID=$(curl -s -X 'GET' "http://localhost:19200/api/variable/name/ffmpeg" -H 'accept: application/json' | jq -r '.Uid')
FFPROBE_UID=$(curl -s -X 'GET' "http://localhost:19200/api/variable/name/ffprobe" -H 'accept: application/json' | jq -r '.Uid') FFPROBE_UID=$(curl -s -X 'GET' "http://localhost:19200/api/variable/name/ffprobe" -H 'accept: application/json' | jq -r '.Uid')
curl -s -X 'DELETE' \ $STD curl -s -X 'DELETE' \
"http://localhost:19200/api/variable" \ "http://localhost:19200/api/variable" \
-H 'accept: */*' \ -H 'accept: */*' \
-H 'Content-Type: application/json' \ -H 'Content-Type: application/json' \
@ -120,17 +120,17 @@ curl -s -X 'DELETE' \
FFMPEG_PATH=$(which ffmpeg) FFMPEG_PATH=$(which ffmpeg)
FFPROBE_PATH=$(which ffprobe) FFPROBE_PATH=$(which ffprobe)
curl -s -X 'POST' \ $STD curl -s -X 'POST' \
"http://localhost:19200/api/variable" \ "http://localhost:19200/api/variable" \
-H 'accept: */*' \ -H 'accept: */*' \
-H 'Content-Type: application/json' \ -H 'Content-Type: application/json' \
-d "{\"Name\":\"ffmpeg\",\"Value\":\"$FFMPEG_PATH\"}" </dev/null 2>/dev/null -d "{\"Name\":\"ffmpeg\",\"Value\":\"$FFMPEG_PATH\"}"
curl -s -X 'POST' \ $STD curl -s -X 'POST' \
"http://localhost:19200/api/variable" \ "http://localhost:19200/api/variable" \
-H 'accept: */*' \ -H 'accept: */*' \
-H 'Content-Type: application/json' \ -H 'Content-Type: application/json' \
-d "{\"Name\":\"ffprobe\",\"Value\":\"$FFPROBE_PATH\"}" </dev/null 2>/dev/null -d "{\"Name\":\"ffprobe\",\"Value\":\"$FFPROBE_PATH\"}"
msg_ok "ffmpeg and ffprobe variables have been updated successfully." msg_ok "ffmpeg and ffprobe variables have been updated successfully."