From b714b3af1b027967d9496458b10e35df63dc036f Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Thu, 6 Apr 2023 13:40:43 +0200 Subject: [PATCH] Fix broken syntax --- scripts/Arch/Devies/Surface/install.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/scripts/Arch/Devies/Surface/install.sh b/scripts/Arch/Devies/Surface/install.sh index a548f9d6..9db98954 100755 --- a/scripts/Arch/Devies/Surface/install.sh +++ b/scripts/Arch/Devies/Surface/install.sh @@ -12,11 +12,13 @@ sudo pacman-key --lsign-key 56C464BAAC421453; pacmanConf="/etc/pacman.conf"; if ! grep "^\[linux-surface\]$" "$pacmanConf" -{ - echo ""; - echo "[linux-surface]"; - echo "Server = https://pkg.surfacelinux.com/arch/"; -} | sudo tee -a "$pacmanConf" > /dev/null; +then + { + echo ""; + echo "[linux-surface]"; + echo "Server = https://pkg.surfacelinux.com/arch/"; + } | sudo tee -a "$pacmanConf" > /dev/null; +fi; sudo pacman --noconfirm -Syu;