mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +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:
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…
x
Reference in New Issue
Block a user