Skip to content

Commit d9ba157

Browse files
committed
Trying a different approach to trimming whitespace. RE:natcap#1580
1 parent ab1eb56 commit d9ba157

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codesigning/signing-worker/natcap-codesign.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ while true
88
do
99
DATA=$(curl -i -H "Accept: application/json" "https://us-west1-natcap-servers.cloudfunctions.net/codesigning-queue{\"token\": \"$ACCESS_TOKEN\"}")
1010
# The response body will be empty when there is nothing in the queue.
11-
if [ -z "$DATA" ]; then
11+
if [ -z $(echo "$DATA" | xargs) ]; then # echo | xargs will trim all whitespace.
1212
continue
1313
else
1414
BASENAME=$(jq ".basename" <<< $DATA)

0 commit comments

Comments
 (0)