summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIsmael Luceno2016-10-17 16:14:10 -0200
committerIsmael Luceno2016-10-17 16:16:26 -0200
commit4668bcd70ba8af87da7349d3d684b34a4dbc64fa (patch)
treeeaf0d1e32da95125067aa790fcb258ec4b34ce2b
parent7fde6d5e316f65524315553da31d38697ce7922c (diff)
quill: Fix parsing of Github URLs
-rwxr-xr-xusr/bin/quill4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr/bin/quill b/usr/bin/quill
index b026d07..79167cf 100755
--- a/usr/bin/quill
+++ b/usr/bin/quill
@@ -103,6 +103,10 @@ if [[ -z $QUILL_TARGET ]]; then
SPELL_SRC_URL="$1"
QUILL_ORIG_TARGET=$(sed -r 's@\.git$@@;s@.*/@@' <<< "$1")
;;
+ https://github.com/*/archive/*)
+ SPELL_SRC_URL="$1"
+ QUILL_ORIG_TARGET=$(awk -F/ '{print $(NF-2)}' <<< "$1")
+ ;;
*:*)
SPELL_SRC_URL="$1"
QUILL_ORIG_TARGET=$(sed -r '