Skip to content

Commit

Permalink
Simplify proxy check
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Penny committed Jun 15, 2014
1 parent 67658a5 commit 59c5236
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions apt-cyg
Original file line number Diff line number Diff line change
Expand Up @@ -342,18 +342,13 @@ proxy () {
shift
continue
fi
case $(jn responseStatus web.json) in
200) # OK
break
;;
400) # out of range start
break
;;
403) # suspected terms of service abuse
if jn responseStatus web.json | grep -q 403
then
shift
continue
;;
esac
else
break
fi
done
printf '%s\n' "$px" >&2
printf '%s\n' "$@" > $dt
Expand Down

0 comments on commit 59c5236

Please sign in to comment.