~sourcemage/quill

ba2b03846715778dc4305b77af5aa439e43dac11 — Ismael Luceno 1 year, 8 months ago 716b074
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")
1 files changed, 1 insertions(+), 1 deletions(-)

M usr/bin/quill
M usr/bin/quill => usr/bin/quill +1 -1
@@ 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"