Showing 1 changed files with 6 additions and 6 deletions
+6 -6
flightgear/fgfs_function
... ...
@@ -152,7 +152,7 @@ function fgfs () {
152 152
                     if test -n "$REPLY" && test ${REPLY:l} = "y"; then
153 153
                         declare -A hangar
154 154
                         eval $(sqlite3 $FGADDON/fgaddon.db <<< "select printf('hangar[type]=%s;hangar[url]=%s;', type, url)
155
-                                                                from hangars where name = '${${(@s/ /)ac}[2]:1:-1}'")
155
+                                                                from hangars where name = '${${${(@s/ /)ac}[2]}:1:-1}'")
156 156
                         case ${hangar[type]} in
157 157
                             git)
158 158
                                 git -C $FGADDON/Aircraft clone ${hangar[url]}/${${(@s/ /)ac}[1]}.git;;
... ...
@@ -364,7 +364,7 @@ EOH
364 364
                                                      and
365 365
                                                        setxml.file = '$file'
366 366
                                                      and
367
-                                                       hangars.name = '${${(@s/ /)ac}[2]:1:-1}'")
367
+                                                       hangars.name = '${${${(@s/ /)ac}[2]}:1:-1}'")
368 368
                         if test -n "$_info"; then
369 369
                             printf "%s: %s\n" "$2" "$_info"
370 370
                         fi
... ...
@@ -438,8 +438,8 @@ EOH
438 438
                         return
439 439
                     fi
440 440
                     local url=$(sqlite3 $FGADDON/fgaddon.db <<< "select printf('%s/${${(@s/ /)ac}[1]}', url)
441
-                                                                 from hangars where name = '${${(@s/ /)ac}[2]:1:-1}'")
442
-                    if test ${${(@s/ /)ac}[2]:1:-1} = 'FGMEMBERS'; then
441
+                                                                 from hangars where name = '${${${(@s/ /)ac}[2]}:1:-1}'")
442
+                    if test ${${${(@s/ /)ac}[2]}:1:-1} = 'FGMEMBERS'; then
443 443
                         url="https://raw.githubusercontent.com/FGMEMBERS/${${(@s/ /)ac}[1]}/master"
444 444
                     fi
445 445
                     if wget --quiet --spider "$url/thumbnail.jpg"; then
... ...
@@ -447,7 +447,7 @@ EOH
447 447
                         | convert - -resize '200%' -normalize -sharpen '0.0x1.0' - \
448 448
                         | display
449 449
                     else
450
-                        echo "can't find or get thumbnail for ${${(@s/ /)ac}[1]} (${${(@s/ /)ac}[2]:1:-1}'s hangar)"
450
+                        echo "can't find or get thumbnail for ${${(@s/ /)ac}[1]} (${${${(@s/ /)ac}[2]}:1:-1}'s hangar)"
451 451
                     fi
452 452
                     return
453 453
                     ;;
... ...
@@ -582,7 +582,7 @@ EOH
582 582
                     test -z "$ac" && return
583 583
                     declare -A hangar
584 584
                     eval $(sqlite3 $FGADDON/fgaddon.db <<< "select printf('hangar[type]=%s;hangar[url]=%s;', type, url)
585
-                                                            from hangars where name = '${${(@s/ /)ac}[2]:1:-1}'")
585
+                                                            from hangars where name = '${${${(@s/ /)ac}[2]}:1:-1}'")
586 586
                     case ${hangar[type]} in
587 587
                         git)
588 588
                             git -C $FGADDON/Aircraft clone ${hangar[url]}/${${(@s/ /)ac}[1]}.git;;