Skip to content

Commit

Permalink
strip .git suffix off from pkg urls
Browse files Browse the repository at this point in the history
  • Loading branch information
complyue committed Mar 18, 2021
1 parent 6c038d1 commit 12e20a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion epm
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function main() {
# @VARIABLE: VERSION
# @DESCRIPTION:
# Version of this script.
VERSION=0.2.8
VERSION=0.2.9

# Default base URL for short package names
BASE_URL=${EPM_REPO_BASE:-"https://github.com/e-wrks"}
Expand Down Expand Up @@ -441,6 +441,7 @@ FLAGS:
else
full_url="$1"
fi
full_url=${full_url%%.git}
pkg_id=${full_url#*://*/}
pkg_dir=edh-universe/"${pkg_id}"

Expand Down

0 comments on commit 12e20a7

Please sign in to comment.