[neon/neon/livecd-rootfs/Neon/release] live-build/ubuntu-server/hooks: fix: Only use single brackets for if statements

Philip Roche null at kde.org
Mon Feb 5 10:40:28 GMT 2024


Git commit c09d4c1652961986b5015adcba5aa969682b114b by Philip Roche.
Committed on 22/01/2024 at 13:27.
Pushed by jriddell into branch 'Neon/release'.

fix: Only use single brackets for if statements

Double brackets are not required and do not follow the uses elsewhere in this code base

M  +1    -1    live-build/ubuntu-server/hooks/01-unminimize.chroot_early

https://invent.kde.org/neon/neon/livecd-rootfs/-/commit/c09d4c1652961986b5015adcba5aa969682b114b

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



More information about the Neon-commits mailing list