From 8751eeaf9b2d2b9b00d5895d7ba861be081e8255 Mon Sep 17 00:00:00 2001 From: "Jeffrey C. Ollie" Date: Sat, 7 Sep 2024 22:25:56 -0500 Subject: [PATCH] parse url --- push-container.nu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/push-container.nu b/push-container.nu index a752aa3..0c07bd9 100644 --- a/push-container.nu +++ b/push-container.nu @@ -113,7 +113,7 @@ def main [ } else { $registry } - ) | parse --regex "(?:https?://)?(?P.*)" | get 0.rest + ) | from url | get 0.rest let repository = ( if ($repository | is-empty) { @@ -130,7 +130,7 @@ def main [ } else { $repository } - ) + ) | url parse | url join regctl registry login $registry --user $auth.username --pass $auth.password