File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11[tool .poetry ]
22name = " tempren"
3- version = " 1.2.3 "
3+ version = " 1.2.4 "
44description = " Template-based renaming utility"
55readme = " README.md"
66license = " GPL-3.0-or-later"
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ set -eux
3+
4+ PACKAGE_NAME=$1
5+ PACKAGE_VERSION=$2
6+ TIMEOUT=$3
7+ DELAY_BETWEEN_REQUESTS=$4
8+
9+ declare URL=https://pypi.org/project/$PACKAGE_NAME /$PACKAGE_VERSION /
10+
11+ DELAY_BETWEEN_REQUESTS=$DELAY_BETWEEN_REQUESTS \
12+ URL=$URL STATUS=200 timeout \
13+ --foreground -s TERM $TIMEOUT bash -c \
14+ ' while [[ ${STATUS_RECEIVED} != ${STATUS} ]];\
15+ do STATUS_RECEIVED=$(curl -s -o /dev/null -L -w ' ' %{http_code}' ' ${URL}) && \
16+ echo "received status: $STATUS_RECEIVED" && \
17+ sleep $DELAY_BETWEEN_REQUESTS;\
18+ done;
19+ echo success with status: $STATUS_RECEIVED'
You can’t perform that action at this time.
0 commit comments