Handle existing files use-case for dev installer
Closes coop-cloud/abra#98.
This commit is contained in:
parent
e31b3d3173
commit
86eb8d7fde
@ -13,9 +13,12 @@ function install_abra_release {
|
|||||||
|
|
||||||
function install_abra_dev {
|
function install_abra_dev {
|
||||||
mkdir -p "$HOME/.abra/"
|
mkdir -p "$HOME/.abra/"
|
||||||
git clone "$GIT_URL" "$HOME/.abra/src"
|
if [[ ! -d "$HOME/.abra/src" ]]; then
|
||||||
|
git clone "$GIT_URL" "$HOME/.abra/src"
|
||||||
|
fi
|
||||||
mkdir -p "$HOME/.local/bin"
|
mkdir -p "$HOME/.local/bin"
|
||||||
ln -s "$HOME/.abra/src/abra" "$HOME/.local/bin/abra"
|
ln -sf "$HOME/.abra/src/abra" "$HOME/.local/bin/abra"
|
||||||
|
echo "abra installed to $HOME/.local/bin/abra (development bleeding edge)"
|
||||||
}
|
}
|
||||||
|
|
||||||
function run_installation {
|
function run_installation {
|
||||||
|
Reference in New Issue
Block a user