Handle existing files use-case for dev installer

Closes #98.
This commit is contained in:
decentral1se 2021-03-16 06:51:10 +01:00
parent e31b3d3173
commit 86eb8d7fde
Signed by: decentral1se
GPG Key ID: 92DAD76BD9567B8A
1 changed files with 5 additions and 2 deletions

View File

@ -13,9 +13,12 @@ function install_abra_release {
function install_abra_dev {
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"
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 {