Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allows custom folder name #82

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
optional folder must include namespace
  • Loading branch information
soraxas committed Jun 1, 2020
commit b6eca2cb939cd082d08031a7d6566b32483d97b1
6 changes: 3 additions & 3 deletions libexec/basher-install
Original file line number Diff line number Diff line change
@@ -32,12 +32,12 @@ fi
# defaults to package's name, but allows custom folder name
folder="$package"
if [ -n "$2" ]; then
if [[ "$2" = */* ]]; then
if [[ "$2" != *([^/])/*([^/]) ]]; then
basher-help install
echo "Optional argunment [folder] cannot be nested."
echo "Optional argunment [folder] must be in the format <...>/<...>"
exit 1
fi
folder="${user}/$2"
folder="$2"
fi

if [ -z "$package" ]; then