From c74c9bd73e354bd19ae57441e5cd1ab689a03a2e Mon Sep 17 00:00:00 2001 From: Ben de Roo Date: Fri, 20 Feb 2026 12:13:33 +0100 Subject: [PATCH] Add install/index.sh --- install/index.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 install/index.sh diff --git a/install/index.sh b/install/index.sh new file mode 100644 index 0000000..6f384c7 --- /dev/null +++ b/install/index.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +DEFAULT_REPO="https://git.de-roo.org/ben/Finalpychat.git" +echo "dankje voor het gebruiken van bens pychat!" + +REPO_URL="${1:-$DEFAULT_REPO}" + +DIR_NAME="${2:-}" + +if [ -z "$REPO_URL" ]; then + echo "Error: Geen Git repository opgegeven." + exit 1 +fi + +if [ -z "$DIR_NAME" ]; then + git clone "$REPO_URL" +else + git clone "$REPO_URL" "$DIR_NAME" +fi + +echo "Klaar." \ No newline at end of file