From 4c8dfa06d44a87b3fe21bf4777f7e475a43a1afb Mon Sep 17 00:00:00 2001 From: numzero Date: Fri, 3 Apr 2026 16:56:25 +0300 Subject: [PATCH] init.sh: fix working with no git --- init.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/init.sh b/init.sh index 428f66b..aad52a1 100755 --- a/init.sh +++ b/init.sh @@ -42,6 +42,10 @@ echo -n $techname | LC_ALL=C grep -q '[A-Za-z0-9]$' || { echo 'Technical name mu echo "Project name: $name" echo "Internal name: $techname" +if ! [ -e .git ]; then + alias git='echo skipping:' +fi + # detach from the skeleton repository # oldurl="$(git remote -v get-url origin)" git remote remove origin