diff options
author | Ramón M. Gómez <ramongomez@us.es> | 2018-10-17 18:56:44 +0200 |
---|---|---|
committer | Ramón M. Gómez <ramongomez@us.es> | 2018-10-17 18:56:44 +0200 |
commit | 85f5c438ba87249e7e0d7badcf29154168c57c42 (patch) | |
tree | dd5910fd0f96edaa2a3782db4ccb382b22f6ee28 | |
parent | ba1f95c4ff3fb5e529f02445d9d16e78fe71ff58 (diff) |
#850: Correct instructions order.
-rwxr-xr-x | repoman/bin/checkrepo | 4 |
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 |