Skip to content

Commit

Permalink
Use nested paths under bashlets_base
Browse files Browse the repository at this point in the history
  • Loading branch information
Roberto Reale committed Jan 5, 2018
1 parent 7778bb6 commit ea5d6d5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bin/bashlets-install
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,9 @@ function install_local()

# save the name of the repository
repo_name=$(basename $(git rev-parse --show-toplevel))
install_base="$BASHLETS_BASE/$path/$module"

# calculate install base folder
install_base="$BASHLETS_BASE/$path/$(tr . / <<<$module)"

# save the current branch, in case we need to switch branch
current_branch=$(git rev-parse --abbrev-ref HEAD)
Expand Down Expand Up @@ -175,7 +177,7 @@ function install_local()

# export the codebase into the installation folder
git archive $rev $path | tar -x -C "$install_path" || {
echo "ERROR: could not install the first-stage loader!" >&2
# echo "ERROR: could not install the first-stage loader!" >&2 XXX
exit 1
}

Expand Down

0 comments on commit ea5d6d5

Please sign in to comment.