fix: abort installation if not in a git repository (#2)

Reviewed-on: https://codeberg.org/vegvisir/install/pulls/2
This commit is contained in:
Victor Westerlund 2025-03-05 11:04:23 +00:00
parent 6be438b974
commit 0097ace805

View file

@ -32,6 +32,11 @@ check_sys_depend() {
}
install_vegvisir() {
if ! [ -d ".git" ] ; then
echo_err "Not in a git repository"
exit 1
fi
if ! [ -d "vegvisir" ] ; then
git submodule add https://codeberg.org/vegvisir/vegvisir
fi