Add install/index.sh
This commit is contained in:
21
install/index.sh
Normal file
21
install/index.sh
Normal file
@@ -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."
|
||||
Reference in New Issue
Block a user