(test_root): Append / to ROOT_FS unless it already ends in it.

This commit is contained in:
Sergey Poznyakoff
2004-08-19 13:09:16 +00:00
parent 73030de19f
commit 1992ef9496

View File

@@ -104,6 +104,10 @@ test_root() {
if [ ! -w ${ROOT_FS-/} ]; then
bailout "The backup must be run as root or else some files will fail to be dumped."
fi
case "${ROOT_FS}" in
*/) ;;
*) ROOT_FS="${ROOT_FS}/"
esac
}
advice() {