mirror of
https://codeberg.org/vegvisir/install.git
synced 2025-09-14 00:33:41 +02:00
fix: abort installation if not in a git repository
This commit is contained in:
parent
658da80e03
commit
e61f65707a
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue