Ensure the bin directory exists
This commit is contained in:
parent
17ac636916
commit
6767deb6a2
1 changed files with 6 additions and 0 deletions
6
sti
6
sti
|
@ -88,6 +88,12 @@ function cmd_install ()
|
|||
tool_name=$(basename $1 .git)
|
||||
tool_home="${data_home}/tools/${tool_name}"
|
||||
|
||||
# Ensure the bin directory exists.
|
||||
if [[ ! -d "$bin_home" ]]; then
|
||||
echo "Creating directory ${bin_home}"
|
||||
mkdir -p "$bin_home"
|
||||
fi
|
||||
|
||||
if [[ ! -d "$tool_home" ]]; then
|
||||
git clone $1 "$tool_home"
|
||||
cmd_reinit "$tool_name"
|
||||
|
|
Loading…
Reference in a new issue