Skip to content

Commit f8d4a7f

Browse files
author
Nikolai Damm
authored
Update entrypoint.sh
1 parent 6ab7ceb commit f8d4a7f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

entrypoint.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,23 @@
11
#!/bin/sh
22

33
set -u
4+
##################################################################
5+
urlencode() (
6+
i=1
7+
max_i=${#1}
8+
while test $i -le $max_i; do
9+
c="$(expr substr $1 $i 1)"
10+
case $c in
11+
[a-zA-Z0-9.~_-])
12+
printf "$c" ;;
13+
*)
14+
printf '%%%02X' "'$c" ;;
15+
esac
16+
i=$(( i + 1 ))
17+
done
18+
)
419

20+
##################################################################
521
DEFAULT_POLL_TIMEOUT=10
622
POLL_TIMEOUT=${POLL_TIMEOUT:-$DEFAULT_POLL_TIMEOUT}
723

0 commit comments

Comments
 (0)