diff options
| author | Ed Maste <emaste@FreeBSD.org> | 2020-12-27 00:24:18 +0000 |
|---|---|---|
| committer | Ed Maste <emaste@FreeBSD.org> | 2021-01-04 18:47:46 +0000 |
| commit | 25e00a2894ea4ea2cbe64f25d9f3d99b60d1ea32 (patch) | |
| tree | 14dd8fad605b403880139cccc5eba6b208b0603a | |
| parent | 5c712c8748f304f57e18b09f890b46d5f3d13a2e (diff) | |
| download | src-25e00a2894ea4ea2cbe64f25d9f3d99b60d1ea32.tar.gz src-25e00a2894ea4ea2cbe64f25d9f3d99b60d1ea32.zip | |
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
(cherry picked from commit 93900fc697992f893e2e69dce0c2f67b1f66a774)
| -rwxr-xr-x | usr.sbin/periodic/etc/daily/221.backup-gpart | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/periodic/etc/daily/221.backup-gpart b/usr.sbin/periodic/etc/daily/221.backup-gpart index d71bd8ffe12a..b2bfde820272 100755 --- a/usr.sbin/periodic/etc/daily/221.backup-gpart +++ b/usr.sbin/periodic/etc/daily/221.backup-gpart @@ -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 |
