forked from Archive/PX4-Autopilot
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:
parent
cd4378b8c6
commit
4e69952ee4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue