From 0097ace805932340d426e2de7ad42a5f0f14d11c Mon Sep 17 00:00:00 2001 From: Victor Westerlund Date: Wed, 5 Mar 2025 11:04:23 +0000 Subject: [PATCH] fix: abort installation if not in a git repository (#2) Reviewed-on: https://codeberg.org/vegvisir/install/pulls/2 --- install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install.sh b/install.sh index 281160a..0c79b41 100755 --- a/install.sh +++ b/install.sh @@ -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