Showing 1 changed files with 10 additions and 0 deletions
+10
.fgfs/fgfs_function
... ...
@@ -418,6 +418,16 @@ function fgfs () {
418 418
                     fi
419 419
                     fgfs_args+=("--addon=$FGADDON/Addons/littlenavmap")
420 420
                     ;;
421
+                --addon=*)
422
+                    addon_path="${fgfs_arg#*=}"
423
+                    if test -d "$addon_path"; then
424
+                        fgfs_args+=("--addon=$addon_path")
425
+                    elif test -d "$FGADDON/Addons/$addon_path"; then
426
+                        fgfs_args+=("--addon=$FGADDON/Addons/$addon_path")
427
+                    else
428
+                        echo "can't find requested addon in $addon_path or $FGADDON/$addon_path !"
429
+                    fi
430
+                    ;;
421 431
                 *)
422 432
                     fgfs_args+=($fgfs_arg);;
423 433
             esac