mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
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:
committed by
Beat Küng
parent
cd4378b8c6
commit
4e69952ee4
+1
-2
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user