mirror of
https://github.com/awalsh128/cache-apt-pkgs-action.git
synced 2024-12-22 10:45:29 +00:00
Convert action to APT version syntax.
This commit is contained in:
parent
a644619d1f
commit
bd5455834e
2
lib.sh
2
lib.sh
|
@ -132,6 +132,8 @@ function normalize_package_list {
|
|||
echo "${stripped}" \
|
||||
| sed 's/\s\+/ /g; s/^\s\+//g; s/\s\+$//g')"
|
||||
local sorted="$(echo ${trimmed} | tr ' ' '\n' | sort | tr '\n' ' ')"
|
||||
# Convert colon delimited package version pairs to APT syntax (i.e. <pkg>=<ver>).
|
||||
local versioned="$(echo $sorted | sed 's/:/=/g')"
|
||||
echo "${sorted}"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue