File tree 1 file changed +24
-2
lines changed
1 file changed +24
-2
lines changed Original file line number Diff line number Diff line change @@ -1902,6 +1902,28 @@ jobs:
1902
1902
- name : analysis! missing-binaries
1903
1903
shell : bash
1904
1904
run : |
1905
+ #echo -n
1906
+ _safeEcho() {
1907
+ printf '%s' "$1"
1908
+ shift
1909
+
1910
+ [[ "$@" == "" ]] && return 0
1911
+
1912
+ local currentArg
1913
+ for currentArg in "$@"
1914
+ do
1915
+ printf '%s' " "
1916
+ printf '%s' "$currentArg"
1917
+ done
1918
+ return 0
1919
+ }
1920
+
1921
+ #echo
1922
+ _safeEcho_newline() {
1923
+ _safeEcho "$@"
1924
+ printf '\n'
1925
+ }
1926
+
1905
1927
mkdir -p ./_local/analysis
1906
1928
1907
1929
#cp ./_local/lsmodReport ./_local/analysis/lsmodReport
@@ -1924,8 +1946,8 @@ jobs:
1924
1946
# Loop through each release
1925
1947
#local currentIteration
1926
1948
currentIteration=0
1927
- #for RELEASE in $(echo "$RELEASES" | jq -r '.[].tag_name' | sort --reverse); do
1928
- for RELEASE in $(echo "$RELEASES" | jq -r 'sort_by(.published_at) | reverse | .[].tag_name' | head -n 20); do
1949
+ #for RELEASE in $(_safeEcho_newline "$RELEASES" | jq -r '.[].tag_name' | sort --reverse); do
1950
+ for RELEASE in $(_safeEcho_newline "$RELEASES" | jq -r 'sort_by(.published_at) | reverse | .[].tag_name' | head -n 20 | tr -dc 'a-zA-Z0-9\-_.:\n' ); do
1929
1951
1930
1952
currentIteration=$((currentIteration+1))
1931
1953
You can’t perform that action at this time.
0 commit comments