Просмотр исходного кода

Fix license argument check

Earlier I replaced all checks on $License valiue when I should have
replaced all *but this one*.
Alois Mahdal 9 лет назад
Родитель
Сommit
a5387a1ca8
1 измененных файлов: 1 добавлений и 1 удалений
  1. 1
    1
      src/stub

+ 1
- 1
src/stub Просмотреть файл

660
         *)        usage ;;
660
         *)        usage ;;
661
     esac
661
     esac
662
     updating && init_from_existing
662
     updating && init_from_existing
663
-    if $MkLicense; then
663
+    if test -n $License; then
664
         known_licenses | grep -qxF "$License" \
664
         known_licenses | grep -qxF "$License" \
665
          || die "unknown license (use -L to get list): $License"
665
          || die "unknown license (use -L to get list): $License"
666
         MkLicense=true
666
         MkLicense=true