Browse Source

Do copr-cli check ASAP

Alois Mahdal 6 years ago
parent
commit
f09852fab0
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      trigger_copr

+ 2
- 2
trigger_copr View File

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)