mirror of
https://codeberg.org/vegvisir/install.git
synced 2025-09-13 16:23:42 +02:00
fix: abort installation if not in a git repository (#2)
Reviewed-on: https://codeberg.org/vegvisir/install/pulls/2
This commit is contained in:
parent
6be438b974
commit
0097ace805
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