... | ... |
@@ -231,12 +231,12 @@ function fgfs () { |
231 | 231 |
else |
232 | 232 |
case $fgfs_arg in |
233 | 233 |
--update(-data|-source|-build|)) |
234 |
- if test -z "$2" || test ! -r $fgfs_source/.$2; then |
|
234 |
+ if test ! -r $fgfs_source/.${2:-flightgear}; then |
|
235 | 235 |
echo "${2:+unknown set $2\n}usage: --update|--update-data|--update-source|--update-build <set>" |
236 | 236 |
echo "available sets :" ${$(find $fgfs_source -maxdepth 1 -type f -name ".*" -printf "%f ")//#.} |
237 | 237 |
return 1 |
238 | 238 |
fi |
239 |
- for component in $(<$fgfs_source/.$2); do |
|
239 |
+ for component in $(<$fgfs_source/.${2:-flightgear}); do |
|
240 | 240 |
if ! test -d $fgfs_source/$component; then |
241 | 241 |
echo component $component not found |
242 | 242 |
return 1 |