Revision 9941
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/web.sh | ||
---|---|---|
1 |
#!/bin/bash -e |
|
2 |
. "$(dirname "${BASH_SOURCE[0]}")"/util.sh |
|
3 |
|
|
4 |
if self_not_included; then |
|
5 |
|
|
6 |
curl() # usage: [dir=...] curl ... |
|
7 |
{ |
|
8 |
echo_func; kw_params dir; local dir="${dir-$top_dir}" |
|
9 |
(cd "$dir"; self "$@") |
|
10 |
} |
|
11 |
|
|
12 |
fi |
|
0 | 13 |
Also available in: Unified diff
added lib/sh/web.sh with curl wrapper