diff options
author | 2011-07-05 21:43:45 +0000 | |
---|---|---|
committer | 2011-07-05 21:43:45 +0000 | |
commit | d4e9352b22df720a6b66229935740c6566cad0bf (patch) | |
tree | 00faaa3ffe16a5f9afa3746d7c1a7e0cfbc8d124 | |
parent | ansify (diff) | |
download | wireguard-openbsd-d4e9352b22df720a6b66229935740c6566cad0bf.tar.xz wireguard-openbsd-d4e9352b22df720a6b66229935740c6566cad0bf.zip |
Make it possible to pass https:// and file:// (along with ftp:// and
http://) so that sysmerge(8) can work with URLs we use in the install
script.
ok sthen@
-rw-r--r-- | usr.sbin/sysmerge/sysmerge.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/sysmerge/sysmerge.sh b/usr.sbin/sysmerge/sysmerge.sh index fefe186fde0..ebd1f56d7d6 100644 --- a/usr.sbin/sysmerge/sysmerge.sh +++ b/usr.sbin/sysmerge/sysmerge.sh @@ -1,6 +1,6 @@ #!/bin/ksh - # -# $OpenBSD: sysmerge.sh,v 1.74 2011/05/09 14:18:34 ajacoutot Exp $ +# $OpenBSD: sysmerge.sh,v 1.75 2011/07/05 21:43:45 ajacoutot Exp $ # # Copyright (c) 1998-2003 Douglas Barton <DougB@FreeBSD.org> # Copyright (c) 2008, 2009, 2010, 2011 Antoine Jacoutot <ajacoutot@openbsd.org> @@ -665,7 +665,7 @@ while getopts bds:x: arg; do tar tzf ${OPTARG} ./var/db/sysmerge/etcsum > /dev/null 2>&1 ; then TGZ=${OPTARG} elif echo ${OPTARG} | \ - grep -qE '^(http|ftp)://.*/etc[0-9][0-9]\.tgz$'; then + grep -qE '^(file|ftp|http|https)://.*/etc[0-9][0-9]\.tgz$'; then TGZ=${WRKDIR}/etc.tgz TGZURL=${OPTARG} if ! ${FETCH_CMD} -o ${TGZ} ${TGZURL}; then @@ -682,7 +682,7 @@ while getopts bds:x: arg; do tar tzf ${OPTARG} ./var/db/sysmerge/xetcsum > /dev/null 2>&1 ; then \ XTGZ=${OPTARG} elif echo ${OPTARG} | \ - grep -qE '^(http|ftp)://.*/xetc[0-9][0-9]\.tgz$'; then + grep -qE '^(file|ftp|http|https)://.*/xetc[0-9][0-9]\.tgz$'; then XTGZ=${WRKDIR}/xetc.tgz XTGZURL=${OPTARG} if ! ${FETCH_CMD} -o ${XTGZ} ${XTGZURL}; then |