don't mv(1) nonexistent directories.

This commit is contained in:
Poul-Henning Kamp 2004-11-28 13:45:31 +00:00
parent c0c6e3516e
commit 969c9e889c

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