fix: abort installation if not in a git repository

This commit is contained in:
Victor Westerlund 2025-03-05 12:00:07 +01:00
parent 658da80e03
commit e61f65707a

View file

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