From c09d4c1652961986b5015adcba5aa969682b114b Mon Sep 17 00:00:00 2001 From: Philip Roche Date: Mon, 22 Jan 2024 12:41:41 +0000 Subject: [PATCH] fix: Only use single brackets for if statements Double brackets are not required and do not follow the uses elsewhere in this code base --- live-build/ubuntu-server/hooks/01-unminimize.chroot_early | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/live-build/ubuntu-server/hooks/01-unminimize.chroot_early b/live-build/ubuntu-server/hooks/01-unminimize.chroot_early index 69fbbccb..64680be4 100755 --- a/live-build/ubuntu-server/hooks/01-unminimize.chroot_early +++ b/live-build/ubuntu-server/hooks/01-unminimize.chroot_early @@ -14,7 +14,7 @@ esac # /usr/sbin/lxd from the lxd-installer package. # We can't do that at this stage so just neuter the lxd command (the snap # will get properly seeded by generic machinery). -if [[ -f "/usr/sbin/lxd" ]]; then +if [ -f "/usr/sbin/lxd" ]; then rm --verbose --force /usr/sbin/lxd ln -s /bin/true /usr/sbin/lxd yes | /usr/local/sbin/unminimize