浏览代码

Do copr-cli check ASAP

Alois Mahdal 8 年前
父节点
当前提交
f09852fab0
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      trigger_copr

+ 2
- 2
trigger_copr 查看文件

90
     local Tmp           # our temp
90
     local Tmp           # our temp
91
     local Branch        # branch to use, if empty, tags are considered
91
     local Branch        # branch to use, if empty, tags are considered
92
     local DryRun=false  # do not do anything
92
     local DryRun=false  # do not do anything
93
+    which copr >/dev/null \
94
+     || die "copr not found, try 'sudo install copr-cli'"
93
     UrlBase=https://github.com/AloisMahdal/slop
95
     UrlBase=https://github.com/AloisMahdal/slop
94
     Tmp=$(mktemp -d)
96
     Tmp=$(mktemp -d)
95
     while true; do case $1 in
97
     while true; do case $1 in
103
     esac done
105
     esac done
104
     CoprProject=$1
106
     CoprProject=$1
105
     test -n "$CoprProject" || usage
107
     test -n "$CoprProject" || usage
106
-    which copr >/dev/null \
107
-     || die "copr not found, try 'sudo install copr-cli'"
108
     if test -n "$Branch"; then
108
     if test -n "$Branch"; then
109
         die "not implemented"
109
         die "not implemented"
110
         test -n "$Version" || Version=$(git_guess ver)
110
         test -n "$Version" || Version=$(git_guess ver)