summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-11-28 13:45:31 +0000
committerphk <phk@FreeBSD.org>2004-11-28 13:45:31 +0000
commit6b7c7e02581cd263d61b1e1621885e99a7cc32c2 (patch)
tree68429d19eabdc453e1df113e0c0002301a18a924 /tools
parent87fc8dfda2de36514dc5289e8482e6ca2c77e37a (diff)
downloadFreeBSD-src-6b7c7e02581cd263d61b1e1621885e99a7cc32c2.zip
FreeBSD-src-6b7c7e02581cd263d61b1e1621885e99a7cc32c2.tar.gz
don't mv(1) nonexistent directories.
Diffstat (limited to 'tools')
-rw-r--r--tools/tools/nanobsd/customize.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/tools/nanobsd/customize.sh b/tools/tools/nanobsd/customize.sh
index 5aa7974..092464a 100644
--- a/tools/tools/nanobsd/customize.sh
+++ b/tools/tools/nanobsd/customize.sh
@@ -61,7 +61,7 @@ installlocalfiles() {
}
movelocaletc() {
- if [ ! -d ${WD}/etc/local ]; then
+ if [ ! -d ${WD}/etc/local -a -d ${WD}/usr/local/etc ]; then
mv ${WD}/usr/local/etc ${WD}/etc/local
ln -s ../../etc/local ${WD}/usr/local/etc
fi
OpenPOWER on IntegriCloud