From f1f927a9b3896fe127ac80f8b6c2cf4890349eb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marc=20W=C3=A4ckerlin?= Date: Mon, 30 Oct 2017 09:23:07 +0100 Subject: [PATCH] quote filesystem path --- btrfs-snapshots.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/btrfs-snapshots.sh b/btrfs-snapshots.sh index 0dff4a4..2a2c9e5 100755 --- a/btrfs-snapshots.sh +++ b/btrfs-snapshots.sh @@ -148,9 +148,9 @@ for fs in ${BTRFS_VOLUMES}; do sudo umount "$TMP_MNT" if test $fast -eq 0; then echo "Defragment subvolume: '${fs}'" - sudo btrfs filesystem defragment ${fs} + sudo btrfs filesystem defragment "${fs}" echo "Rebalance subvolume: '${fs}'" - sudo btrfs balance start ${fs} + sudo btrfs balance start "${fs}" fi else echo "ERROR: no device found for $fs" 1>&2