diff options
author | rillig <rillig@pkgsrc.org> | 2007-10-10 09:04:21 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2007-10-10 09:04:21 +0000 |
commit | 4d0642f1f2d0c721f0e6fada048ff264c384bfdb (patch) | |
tree | f6d6eb54f44c80fc2fcdb709bb70388c5ffe9e6b /pkgtools | |
parent | b8ca9d114e1be708022aca3438cde4a3e7fb53c8 (diff) | |
download | pkgsrc-4d0642f1f2d0c721f0e6fada048ff264c384bfdb.tar.gz |
When installing the bootstrap kit from a directory, correctly handle the
case when ${prefix} already exists.
Diffstat (limited to 'pkgtools')
-rwxr-xr-x | pkgtools/pbulk/files/pbulk/scripts/client-clean | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgtools/pbulk/files/pbulk/scripts/client-clean b/pkgtools/pbulk/files/pbulk/scripts/client-clean index f218daf1e7d..b448ba8e2a6 100755 --- a/pkgtools/pbulk/files/pbulk/scripts/client-clean +++ b/pkgtools/pbulk/files/pbulk/scripts/client-clean @@ -1,5 +1,5 @@ #!@SH@ -# $NetBSD: client-clean,v 1.5 2007/09/22 00:12:33 rillig Exp $ +# $NetBSD: client-clean,v 1.6 2007/10/10 09:04:21 rillig Exp $ . @PBULK_CONFIG@ @@ -14,7 +14,8 @@ rm -rf ${prefix} ${pkgdb} ${varbase}/qmail 2> /dev/null || true if [ -f "${bootstrapkit}" ]; then ${tar} -xzf ${bootstrapkit} -C / elif [ -d "${bootstrapkit}" ]; then - cp -R ${bootstrapkit} ${prefix} + [ -d ${prefix} ] || mkdir ${prefix} + cp -R ${bootstrapkit}/* ${prefix} else # Do nothing fi |