From a889393aece1ee0b9ae679e5497cc59bcfa71b04 Mon Sep 17 00:00:00 2001 From: Simon Deziel Date: Thu, 18 Apr 2024 00:33:33 -0400 Subject: [PATCH] test/includes/microcloud: simplify rm -rf globbing Signed-off-by: Simon Deziel --- microcloud/test/includes/microcloud.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/microcloud/test/includes/microcloud.sh b/microcloud/test/includes/microcloud.sh index 8643393ca..d91d15427 100644 --- a/microcloud/test/includes/microcloud.sh +++ b/microcloud/test/includes/microcloud.sh @@ -423,7 +423,7 @@ reset_snaps() { fi rm -rf /var/snap/lxd/common/lxd - rm -rf /var/snap/microcloud/*/* + rm -rf /var/snap/microcloud/* " echo "Resetting MicroCeph for ${name}" @@ -440,7 +440,7 @@ reset_snaps() { modprobe -r rbd ceph # Wipe the snap state so we can start fresh. - rm -rf /var/snap/microceph/*/* + rm -rf /var/snap/microceph/* snap enable microceph > /dev/null 2>&1 || true # microceph.osd requires this directory to exist but doesn't create it after install. @@ -464,7 +464,7 @@ reset_snaps() { fi # Wipe the snap state so we can start fresh. - rm -rf /var/snap/microovn/*/* + rm -rf /var/snap/microovn/* snap enable microovn > /dev/null 2>&1 || true fi "