From 854af21da616bf0fb0283eab24025c35b79dd03a Mon Sep 17 00:00:00 2001 From: Shizun Ge Date: Wed, 7 Feb 2024 21:47:41 -0800 Subject: [PATCH] [gantry] allow registries file to end without a newline. It does not follow POSIX (https://stackoverflow.com/questions/729692/). But it would be more user friendly. --- src/lib-gantry.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib-gantry.sh b/src/lib-gantry.sh index e38bd91..be5d80e 100755 --- a/src/lib-gantry.sh +++ b/src/lib-gantry.sh @@ -93,7 +93,7 @@ _authenticate_to_registries() { return 1 fi _login_registry "${USER}" "${PASSWORD}" "${HOST}" "${CONFIG}" - done <"${CONFIGS_FILE}" + done < <(cat "${CONFIGS_FILE}"; echo;) } _send_notification() {