Browse Source

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
release/1.12
Mikołaj Grzybek 4 years ago committed by Beat Küng
parent
commit
4e69952ee4
  1. 3
      Tools/setup/arch.sh

3
Tools/setup/arch.sh

@ -155,8 +155,7 @@ if [[ $INSTALL_SIM == "true" ]]; then
# fix VMWare 3D graphics acceleration for gazebo # fix VMWare 3D graphics acceleration for gazebo
exportline="export SVGA_VGPU10=0" exportline="export SVGA_VGPU10=0"
if grep -Fxq "$exportline" $HOME/.profile; then if !grep -Fxq "$exportline" $HOME/.profile; then
else
echo $exportline >> $HOME/.profile; echo $exportline >> $HOME/.profile;
fi fi
fi fi

Loading…
Cancel
Save