Skip to content

Commit

Permalink
allow EPM_REPO_BASE to be on local filesystem
Browse files Browse the repository at this point in the history
  • Loading branch information
complyue committed Dec 13, 2021
1 parent 876b44a commit 221b60b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions 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.3.3
VERSION=0.3.4

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

status_message "Installing $1 to ${pkg_dir} ..."
Expand Down

0 comments on commit 221b60b

Please sign in to comment.