We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab1eb56 commit d9ba157Copy full SHA for d9ba157
codesigning/signing-worker/natcap-codesign.sh
@@ -8,7 +8,7 @@ while true
8
do
9
DATA=$(curl -i -H "Accept: application/json" "https://us-west1-natcap-servers.cloudfunctions.net/codesigning-queue{\"token\": \"$ACCESS_TOKEN\"}")
10
# The response body will be empty when there is nothing in the queue.
11
- if [ -z "$DATA" ]; then
+ if [ -z $(echo "$DATA" | xargs) ]; then # echo | xargs will trim all whitespace.
12
continue
13
else
14
BASENAME=$(jq ".basename" <<< $DATA)
0 commit comments