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
This commit is contained in:
Mikołaj Grzybek 2021-05-04 01:21:33 +02:00 committed by Beat Küng
parent cd4378b8c6
commit 4e69952ee4
1 changed files with 1 additions and 2 deletions

View File

@ -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