summaryrefslogtreecommitdiffstats
path: root/repoman
diff options
context:
space:
mode:
authorRamón M. Gómez <ramongomez@us.es>2018-10-17 18:56:44 +0200
committerRamón M. Gómez <ramongomez@us.es>2018-10-17 18:56:44 +0200
commit85f5c438ba87249e7e0d7badcf29154168c57c42 (patch)
treedd5910fd0f96edaa2a3782db4ccb382b22f6ee28 /repoman
parentba1f95c4ff3fb5e529f02445d9d16e78fe71ff58 (diff)
#850: Correct instructions order.
Diffstat (limited to 'repoman')
-rwxr-xr-xrepoman/bin/checkrepo4
1 files changed, 2 insertions, 2 deletions
diff --git a/repoman/bin/checkrepo b/repoman/bin/checkrepo
index 24bb8adb..5b8a0270 100755
--- a/repoman/bin/checkrepo
+++ b/repoman/bin/checkrepo
@@ -220,10 +220,10 @@ function checkremoved() {
# Main progrram.
# Check dependencies.
-[ ! -w "$(dirname "$INFOFILE")" ] && raiseError access "$INFOFILE"
-[ -e "$INFOFILE" ] || addToJson
JQ=$(which jq 2>/dev/null) || raiseError notfound "Need to install \"jq\"."
which sponge &>/dev/null || raiseError notfound "Need to install \"moreutils\"."
+[ ! -w "$(dirname "$INFOFILE")" ] && raiseError access "$INFOFILE"
+[ -e "$INFOFILE" ] || addToJson
checkfiles
checkdirs