Skip to content

Commit

Permalink
improved version output
Browse files Browse the repository at this point in the history
Signed-off-by: Andrwe Lord Weber <github@andrwe.org>
  • Loading branch information
Andrwe committed Jan 9, 2016
1 parent 2733029 commit 9c58edf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions repocheck.sh
Expand Up @@ -46,9 +46,9 @@ while read repo pkg pacver state; do
pacver_num="${pacver//[-._]/}"
aurver_num="${aurver//[-._]/}"
if [[ ${pacver_num} =~ ^[0-9]+$ ]] && [[ ${aurver_num} =~ ^[0-9]+$ ]]; then
[[ ${pacver_num##0} -lt ${aurver_num##0} ]] && echo "${repo} ${pkg} ${aurver} cur: ${pacver}"
[[ ${pacver_num##0} -lt ${aurver_num##0} ]] && echo "${repo} ${pkg} ${pacver} -> ${aurver}"
continue
fi
[[ "${pacver}" != "${aurver}" ]] && echo "${repo} ${pkg} ${aurver} cur: ${pacver}"
[[ "${pacver}" != "${aurver}" ]] && echo "${repo} ${pkg} ${pacver} -> ${aurver}"
fi
done <<<"$(pacman -Sl ${REPONAME})"

0 comments on commit 9c58edf

Please sign in to comment.