mirror of
https://github.com/awalsh128/cache-apt-pkgs-action.git
synced 2024-12-22 18:55:30 +00:00
Merge script include snippet.
This commit is contained in:
parent
b61cf9a6f1
commit
1e75d90dc9
3
lib.sh
3
lib.sh
|
@ -29,7 +29,8 @@ function get_package_name_ver {
|
||||||
|
|
||||||
function log { echo "$(date +%H:%M:%S)" "${@}"; }
|
function log { echo "$(date +%H:%M:%S)" "${@}"; }
|
||||||
|
|
||||||
function write_manifest {
|
function write_manifest {
|
||||||
|
echo "manifest list ${1}"
|
||||||
log "Writing ${1} packages manifest to ${3}..."
|
log "Writing ${1} packages manifest to ${3}..."
|
||||||
# 0:-1 to remove trailing comma, delimit by newline and sort
|
# 0:-1 to remove trailing comma, delimit by newline and sort
|
||||||
echo "${2:0:-1}" | tr ',' '\n' | sort > ${3}
|
echo "${2:0:-1}" | tr ',' '\n' | sort > ${3}
|
||||||
|
|
Loading…
Reference in a new issue