Skip to content

Commit

Permalink
fix(recording): ignore empty lines
Browse files Browse the repository at this point in the history
  • Loading branch information
masnagam committed Nov 29, 2024
1 parent 01392a7 commit 763644d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions recording/recording.sh
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,10 @@ replace_services() {
SERVICES=$(curl "$BASE_URL/api/services" -sG)
while read -r TSV
do
if [ -z "$TSV" ]
then
continue
fi
ID=$(echo "$TSV" | cut -f 1)
SERVICE_ID=$(expr $ID / 100000)
SERVICE=$(echo "$SERVICES" | jq -r ".[] | select(.id == $SERVICE_ID) | .name")
Expand Down

0 comments on commit 763644d

Please sign in to comment.