init.sh: fix working with no git

This commit is contained in:
numzero 2026-04-03 16:56:25 +03:00
parent 6de824c9c2
commit 4c8dfa06d4

View File

@ -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