init.sh: fix working with no git
This commit is contained in:
parent
6de824c9c2
commit
4c8dfa06d4
4
init.sh
4
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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user