xbps-src: improve vmove().
This commit is contained in:
parent
a26dd06538
commit
6513a02ee0
1 changed files with 3 additions and 4 deletions
|
@ -86,13 +86,12 @@ vmove()
|
||||||
msg_red "vmove: 1 argument expected: <files>\n"
|
msg_red "vmove: 1 argument expected: <files>\n"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
if [ -n "${targetdir}" -a ! -d ${DESTDIR}/${targetdir} ]; then
|
|
||||||
vmkdir ${targetdir}
|
|
||||||
fi
|
|
||||||
if [ -z "${targetdir}" ]; then
|
if [ -z "${targetdir}" ]; then
|
||||||
|
[ ! -d ${DESTDIR} ] && install -d ${DESTDIR}
|
||||||
mv ${SRCPKGDESTDIR}/$files ${DESTDIR}
|
mv ${SRCPKGDESTDIR}/$files ${DESTDIR}
|
||||||
else
|
else
|
||||||
mv ${SRCPKGDESTIDR}/$files ${DESTDIR}/${targetdir}
|
[ ! -d ${DESTDIR}/${targetdir} ] && vmkdir ${targetdir}
|
||||||
|
mv ${SRCPKGDESTDIR}/$files ${DESTDIR}/${targetdir}
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue