浏览代码

Fix license argument check

Earlier I replaced all checks on $License valiue when I should have
replaced all *but this one*.
Alois Mahdal 7 年前
父节点
当前提交
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