pub / stagit-scripts

Building src.jayvii.de with stagit
git clone https://src.jayvii.de/pub/stagit-scripts.git
Home | Log | Files | Exports | Refs | README | RSS

commit eac0a85714d99b2418a08955128bea94ff39c432
parent 6733942e0bef0be48959a6a4bdb7825971d5a4e4
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date:   Wed,  1 May 2024 14:13:23 +0200

ensure that existing repositories are never overwritten

Diffstat:
Mbin/git_create_repo.sh | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/bin/git_create_repo.sh b/bin/git_create_repo.sh @@ -21,6 +21,12 @@ git_create_repo.sh \\ exit 1; fi +# If Git Repositories / folders already exist, exit immediately +if [ -d "${1}/${2}/${3}.git" ]; then + echo "${2}/${3} already exists!" + exit 1; +fi + # Create Folders mkdir -p "${1}/${2}/${3}/" mkdir -p "${1}/${2}/${3}/exports/"