From 4e69952ee43653d10ff2f8765bbfbc8adea740b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20Grzybek?= <40246728+MikolajGrzybek@users.noreply.github.com> Date: Tue, 4 May 2021 01:21:33 +0200 Subject: [PATCH] arch.sh: Syntax error fix Script failed for me with following error PX4-Autopilot/Tools/setup/arch.sh: line 159: syntax error near unexpected token `else' PX4-Autopilot/Tools/setup/arch.sh: line 159: ` else' Seems like there is nothing to do in case of positive if case. Changed code should maintain logic --- Tools/setup/arch.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Tools/setup/arch.sh b/Tools/setup/arch.sh index 79d44496dc..b64040c8ff 100644 --- a/Tools/setup/arch.sh +++ b/Tools/setup/arch.sh @@ -155,8 +155,7 @@ if [[ $INSTALL_SIM == "true" ]]; then # fix VMWare 3D graphics acceleration for gazebo exportline="export SVGA_VGPU10=0" - if grep -Fxq "$exportline" $HOME/.profile; then - else + if !grep -Fxq "$exportline" $HOME/.profile; then echo $exportline >> $HOME/.profile; fi fi