We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bbf6fb1 commit 7112065Copy full SHA for 7112065
csv/bump-apk-versions.sh
@@ -1,4 +1,5 @@
1
#!/bin/ash
2
+# shellcheck shell=dash
3
4
set -euo pipefail
5
@@ -14,6 +15,9 @@ u=$(\apk -u list | \tr '\n' '|')
14
15
p="${l%=*}"
16
v1="${l#*=}"
17
v="$(\echo "|${u}" | \grep -o -e "\|${p}-[^\|]*upgradable from: ${p}-${v1}" || true)"
18
+ if [ -n "${v}" ]; then
19
+ continue
20
+ fi
21
n=$(($(\echo -n "${p}" | wc -c) + 2))
22
v2="$(\echo "${v}" | \cut -d ' ' -f 0 | \cut -c ${n}-)"
23
if [ -n "${v2}" ] && [ "${v2}" != "${v1}" ]; then
0 commit comments