We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa3d9d4 commit b398f4dCopy full SHA for b398f4d
.github/workflows/pipx-check-versions.yml
@@ -42,7 +42,7 @@ jobs:
42
current_version="${BASH_REMATCH[2]}"
43
# Get latest version from PyPI using pip index versions
44
# The version in parentheses on the first line is the latest
45
- latest_version="$(\pip index versions "csvkit" 2>/dev/null | \grep -e '^Available versions: ' | \cut -d ',' -f 1 | \sed -e 's/^.*: //')"
+ latest_version="$(\pip index versions "csvkit" 2>/dev/null | { \grep -e '^Available versions: ' || true } | \cut -d ',' -f 1 | \sed -e 's/^.*: //')"
46
if [ "${current_version}" != "${latest_version}" ]; then
47
echo "${package}: ${current_version} -> ${latest_version}"
48
rc=$((rc+1))
0 commit comments