Skip to content

Commit

Permalink
Merge pull request #5 from fykosak/dev
Browse files Browse the repository at this point in the history
[touch-https] non-blocking check of return value
  • Loading branch information
Werkov committed Mar 1, 2016
2 parents 4baff8c + f5e0740 commit 097ef79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/touch-astrid-https.sample
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ URL="/build/reponame"

function touch_astrid {
# timeout 1 second, 1 try
wget -T 1 -t 1 --http-user=$USER --http-password=$PASS -O /dev/null https://${HOST}$URL 2>/dev/null &
wget -T 1 -t 1 --http-user=$USER --http-password=$PASS -O /dev/null https://${HOST}$URL 2>/dev/null
if [ $? = 0 ] ; then
echo "$URL: rebuild request sent to Astrid."
else
Expand All @@ -18,4 +18,4 @@ function touch_astrid {
}


touch_astrid
touch_astrid &

0 comments on commit 097ef79

Please sign in to comment.