mirror of
https://github.com/flatcar/scripts.git
synced 2025-11-29 06:21:46 +01:00
ci-automation: Trivial fixes
Dropped some trailing whitespace, fixed a typo. Trivial.
This commit is contained in:
parent
9b57d5ded6
commit
698d0de129
@ -27,7 +27,7 @@
|
|||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
function garbage_collect() {
|
function garbage_collect() {
|
||||||
local keep="${1:-50}"
|
local keep="${1:-50}"
|
||||||
local dry_run="${DRY_RUN:-}"
|
local dry_run="${DRY_RUN:-}"
|
||||||
local purge_versions="${PURGE_VERSIONS:-}"
|
local purge_versions="${PURGE_VERSIONS:-}"
|
||||||
|
|
||||||
@ -53,7 +53,7 @@ function garbage_collect() {
|
|||||||
|
|
||||||
local sshcmd="$(gen_sshcmd)"
|
local sshcmd="$(gen_sshcmd)"
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "######## The following version(s) will be purged ########"
|
echo "######## The following version(s) will be purged ########"
|
||||||
if [ "$dry_run" = "y" ] ; then
|
if [ "$dry_run" = "y" ] ; then
|
||||||
echo
|
echo
|
||||||
@ -61,13 +61,13 @@ function garbage_collect() {
|
|||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
echo "${purge_versions}" | awk -v keep="${keep}" '{if ($0 == "") next; printf "%5d %s\n", NR + keep - 1, $0}'
|
echo "${purge_versions}" | awk -v keep="${keep}" '{if ($0 == "") next; printf "%5d %s\n", NR + keep - 1, $0}'
|
||||||
echo
|
echo
|
||||||
echo
|
echo
|
||||||
|
|
||||||
local version
|
local version
|
||||||
for version in ${purge_versions}; do
|
for version in ${purge_versions}; do
|
||||||
echo "--------------------------------------------"
|
echo "--------------------------------------------"
|
||||||
echo
|
echo
|
||||||
echo "#### Processing version '${version}' ####"
|
echo "#### Processing version '${version}' ####"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
# Helper script for extracting information from TAP files and for merging multiple
|
# Helper script for extracting information from TAP files and for merging multiple
|
||||||
# TAP files into one report.
|
# TAP files into one report.
|
||||||
# The script uses a temporary SQLite DB for querzing and for result generation.
|
# The script uses a temporary SQLite DB for querying and for result generation.
|
||||||
#
|
#
|
||||||
# Brief usage overview (scroll down for parameters etc.):
|
# Brief usage overview (scroll down for parameters etc.):
|
||||||
# tap_ingest_tapfile - add test results from tap file to the DB
|
# tap_ingest_tapfile - add test results from tap file to the DB
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user