From ba2b03846715778dc4305b77af5aa439e43dac11 Mon Sep 17 00:00:00 2001 From: Ismael Luceno Date: Mon, 24 May 2021 14:54:01 +0200 Subject: [PATCH] quill: Simplify parsing of Github URLs Extract the name using a fixed index; counting from the end can vary the relative index in case of full refs. Fixes: 4668bcd70ba8 ("quill: Fix parsing of Github URLs") --- usr/bin/quill | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/bin/quill b/usr/bin/quill index 79167cf..7380ba3 100755 --- a/usr/bin/quill +++ b/usr/bin/quill @@ -105,7 +105,7 @@ if [[ -z $QUILL_TARGET ]]; then ;; https://github.com/*/archive/*) SPELL_SRC_URL="$1" - QUILL_ORIG_TARGET=$(awk -F/ '{print $(NF-2)}' <<< "$1") + QUILL_ORIG_TARGET=$(awk -F/ '{print $5}' <<< "$1") ;; *:*) SPELL_SRC_URL="$1" -- 2.38.4