Fix daily_backup_gpart_exclude in periodic daily 221.backup-gpart

Since gpart_devs was not quoted (losing embedded newlines), if
daily_backup_gpart_exclude matched something, gpart_devs was empty.

PR:		251961
Submitted by:	Kan Sasaki
MFC after:	1 week
This commit is contained in:
Ed Maste 2020-12-26 19:24:18 -05:00
parent f733d9701b
commit 93900fc697

View File

@ -54,7 +54,7 @@ case "$daily_backup_gpart_enable" in
gpart_devs=$(gpart show | awk '$1 == "=>" { print $4 }')
if [ -n "$daily_backup_gpart_exclude" ]; then
gpart_devs=$(echo ${gpart_devs} | grep -E -v "${daily_backup_gpart_exclude}")
gpart_devs=$(echo "${gpart_devs}" | grep -E -v "${daily_backup_gpart_exclude}")
fi
if [ -z "$gpart_devs" ]; then