don't mv(1) nonexistent directories.

This commit is contained in:
phk 2004-11-28 13:45:31 +00:00
parent 87fc8dfda2
commit 6b7c7e0258

View File

@ -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