From 44280cb67add1ba976956ec9d199e543fe61890e Mon Sep 17 00:00:00 2001 From: Nicolas Meienberger Date: Sat, 26 Aug 2023 11:29:23 +0200 Subject: [PATCH] fix(install.sh): check for git presence on the system --- scripts/install.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/install.sh b/scripts/install.sh index fff92d02..d6ad0b47 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -196,4 +196,10 @@ if [ "$(id -u)" -ne 0 ]; then fi fi +# Check if git is installed +if ! command -v git >/dev/null; then + echo "Git is not installed. Please install git and restart the script." + exit 1 +fi + ./runtipi-cli start