Showing 1 changed files with 1 additions and 1 deletions
+1 -1
flightgear/fgfs_function
... ...
@@ -555,7 +555,7 @@ function fgfs () {
555 555
     ld_library_path
556 556
 
557 557
     fgfsrc=$HOME/.fgfs/fgfsrc
558
-    echo ${fgfs_args[@]//$HOME/\$HOME} $(test -r $fgfsrc && egrep -v '^\s*(#|$)' $fgfsrc | tr '\n' ' ')
558
+    echo ${fgfs_args[@]//$HOME/\$HOME} $(test -r $fgfsrc && sed -r "/^\s*(#|$)/d;s|$HOME|\$HOME|" $fgfsrc | tr '\n' ' ')
559 559
 # TODO: ne lancer avec primusrun que si c'est nécesaire, d'autres solution existent ?
560 560
     primusrun $FGDIR/install/flightgear/bin/fgfs ${fgfs_args[@]}
561 561