Commit 3ded9ec6afcbcf6475050c5be72df0434ee8d305
1 parent
86ba2eb9
Exists in
master
and in
90 other branches
Drop usage of `readlink -f`
Not portable to *BSD
Showing
3 changed files
with
9 additions
and
4 deletions
Show diff stats
server
1 | 1 | #!/bin/sh |
2 | 2 | |
3 | -ROOTDIR="$(readlink -f $(dirname $0))" | |
4 | -. $ROOTDIR/test/ip_helper.sh | |
3 | +if [ -f test/ip_helper.sh ]; then | |
4 | + ROOTDIR=$(dirname $0) | |
5 | + . test/ip_helper.sh | |
6 | +else | |
7 | + echo "E: must run $0 from the root of the repository!" | |
8 | + exit 1 | |
9 | +fi | |
5 | 10 | |
6 | 11 | sudo -v |
7 | 12 | sudo redir --lport 80 --cport 80 --caddr $reverseproxy & | ... | ... |
test/bin/curl