We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9ba157 commit 673e16dCopy full SHA for 673e16d
codesigning/signing-worker/natcap-codesign.sh
@@ -8,7 +8,8 @@ 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 $(echo "$DATA" | xargs) ]; then # echo | xargs will trim all whitespace.
+ if [ -z $(echo -e "$DATA" | tr -d '[:space:]') ]; then
12
+ echo "No queued requests, waiting 30 seconds..."
13
continue
14
else
15
BASENAME=$(jq ".basename" <<< $DATA)
0 commit comments