„init.sh“ ändern
This commit is contained in:
3
init.sh
3
init.sh
@@ -5,7 +5,7 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|||||||
DIR_NAME=$(basename "$DIR")
|
DIR_NAME=$(basename "$DIR")
|
||||||
DIR_NAME=$(echo "$DIR_NAME" | tr '[:upper:]' '[:lower:]' | sed 's/[^a-z0-9_-]//g' | tr ' ' '_')
|
DIR_NAME=$(echo "$DIR_NAME" | tr '[:upper:]' '[:lower:]' | sed 's/[^a-z0-9_-]//g' | tr ' ' '_')
|
||||||
|
|
||||||
echo "Angepasster Name: $DIR_NAME"
|
|
||||||
# Entferne vorhandenes Git-Repository, falls vorhanden
|
# Entferne vorhandenes Git-Repository, falls vorhanden
|
||||||
rm -rf .git
|
rm -rf .git
|
||||||
|
|
||||||
@@ -97,3 +97,4 @@ npm i --prefix backend --save-dev nodemon typescript ts-node
|
|||||||
git init
|
git init
|
||||||
git add .
|
git add .
|
||||||
git commit -m "Initial template setup"
|
git commit -m "Initial template setup"
|
||||||
|
echo "Angepasster Name: $DIR_NAME"
|
||||||
Reference in New Issue
Block a user