summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorMark Andrews <marka@isc.org>2018-09-17 15:50:56 +1000
committerMark Andrews <marka@isc.org>2018-09-17 15:50:56 +1000
commit08f411623d76d4889de442cd13e67d2ea44a5911 (patch)
tree8085013f5bfe3764efebbafcd1d591297b9504aa /util
parente468ff7a038e3738280b1f3bc0cfb966f6916e57 (diff)
downloadisc-dhcp-08f411623d76d4889de442cd13e67d2ea44a5911.tar.gz
look for fetch as well as wget
Diffstat (limited to 'util')
-rw-r--r--util/bind.sh36
1 files changed, 24 insertions, 12 deletions
diff --git a/util/bind.sh b/util/bind.sh
index 39f9337c..180fef4a 100644
--- a/util/bind.sh
+++ b/util/bind.sh
@@ -134,21 +134,33 @@ else
cd $binddir
# Get the bind version file and move it to version.tmp
- wget https://$repo_host/$repo_path/raw/$BINDTAG/version
+ if type wget
+ then
+ wget https://$repo_host/$repo_path/raw/$BINDTAG/version ||
+ { echo "Fetch of version file failed" ; exit -1; }
+ elif type fetch
+ then
+ fetch https://$repo_host/$repo_path/raw/$BINDTAG/version ||
+ { echo "Fetch of version file failed" ; exit -1; }
+ else
+ echo "Fetch of version file failed"
+ exit 1
+ fi
mv version version.tmp
- if [ $? -ne 0 ]
- then
- echo "Fetch of version file failed"
- exit -1
- fi
# Get the bind release kit shell script
- wget https://$repo_host/$repo_path/raw/master/util/kit.sh
- if [ $? -ne 0 ]
- then
- echo "Fetch of kit.sh failed"
- exit -1
- fi
+ if type wget
+ then
+ wget https://$repo_host/$repo_path/raw/master/util/kit.sh ||
+ { echo "Fetch of kit.sh file failed" ; exit -1; }
+ elif type fetch
+ then
+ fetch https://$repo_host/$repo_path/raw/master/util/kit.sh ||
+ { echo "Fetch of kit.sh failed" ; exit -1; }
+ else
+ echo "Fetch of kit.sh failed"
+ exit 1
+ fi
# Create the bind tarball, which has the side effect of
# setting up the bind directory we will use for building