Pārlūkot izejas kodu

Do copr-cli check ASAP

Alois Mahdal 7 gadus atpakaļ
vecāks
revīzija
f09852fab0
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2
    2
      trigger_copr

+ 2
- 2
trigger_copr Parādīt failu

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