blob: b0c926caa9cfd917a2a1e691c0d0a15125c13011 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/sh
set -euf
tempfile="`mktemp /tmp/test.XXXXXXXX`"
trap "/bin/rm -f $tempfile" EXIT INT
uriparse "http://user:pass@domain.tld/path" > $tempfile
. $tempfile
[ $HOSTN == "domain.tld" ] && \
[ $USERNAME == "user" ] && \
[ $PASSWORD == "pass" ] && \
[ $URIPATH == "/path" ]
|