summaryrefslogtreecommitdiffstats
path: root/release/scripts/bin-install.sh
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1998-09-22 08:43:10 +0000
committerjkh <jkh@FreeBSD.org>1998-09-22 08:43:10 +0000
commit8b5224d95627b570b6b09d645aebd12055faa5b8 (patch)
treec7c4a854f8b503b55fa5e0141b26b168b424f14b /release/scripts/bin-install.sh
parenta9176ccdfc6c8ff1505f6393f554ddc67052d6a7 (diff)
downloadFreeBSD-src-8b5224d95627b570b6b09d645aebd12055faa5b8.zip
FreeBSD-src-8b5224d95627b570b6b09d645aebd12055faa5b8.tar.gz
Allow the use of ${DESTDIR} in the enviroment to optionally get
these various collections to install someplace else.
Diffstat (limited to 'release/scripts/bin-install.sh')
-rwxr-xr-xrelease/scripts/bin-install.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/release/scripts/bin-install.sh b/release/scripts/bin-install.sh
index 8fab5c2..6b32b03 100755
--- a/release/scripts/bin-install.sh
+++ b/release/scripts/bin-install.sh
@@ -4,9 +4,10 @@ if [ "`id -u`" != "0" ]; then
echo "Sorry, this must be done as root."
exit 1
fi
-echo "You are about to extract the base distribution into / - are you SURE"
+
+echo "You are about to extract the base distribution into ${DESTDIR:-/} - are you SURE"
echo -n "you want to do this over your installed system (y/n)? "
read ans
if [ "$ans" = "y" ]; then
- cat bin.?? | tar --unlink -xpzf - -C /
+ cat bin.?? | tar --unlink -xpzf - -C ${DESTDIR:-/}
fi
OpenPOWER on IntegriCloud