Added test more for create_datasets.

This commit is contained in:
Otho 2022-11-23 22:56:12 -05:00
parent 6254180279
commit f03bf1f547
Signed by: Otho
GPG Key ID: 16C720CD3BBE21D9

View File

@ -44,8 +44,13 @@ read_datasets() {
create_datasets() {
# should compare_datasets and only create missing or possibly error.
for dataset in `cat ${datasets_file}`; do
if [ $BG_TEST_MODE = "TRUE" ]; then
echo zfs create -p ${BG_ROOT}/$dataset
else
zfs create -p ${BG_ROOT}/$dataset
fi
done
}