Handle existing files use-case for dev installer

Closes coop-cloud/abra#98.
This commit is contained in:
decentral1se 2021-03-16 06:51:10 +01:00
parent e31b3d3173
commit 86eb8d7fde
Signed by untrusted user who does not match committer: decentral1se
GPG Key ID: 92DAD76BD9567B8A

View File

@ -13,9 +13,12 @@ function install_abra_release {
function install_abra_dev {
mkdir -p "$HOME/.abra/"
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 {