sed remove only on OSX
parent
4f015794f2
commit
ab57b03871
|
@ -99,7 +99,9 @@ cd "$NEW_PROJECT_DIR"
|
||||||
files=(ProjectName.Core.sln ProjectName.Framework.sln .gitignore ProjectName/ProjectName.Core.csproj ProjectName/ProjectName.Framework.csproj ProjectName/ProjectNameGame.cs ProjectName/Program.cs .vscode/tasks.json .vscode/launch.json)
|
files=(ProjectName.Core.sln ProjectName.Framework.sln .gitignore ProjectName/ProjectName.Core.csproj ProjectName/ProjectName.Framework.csproj ProjectName/ProjectNameGame.cs ProjectName/Program.cs .vscode/tasks.json .vscode/launch.json)
|
||||||
for file in "${files[@]}"; do
|
for file in "${files[@]}"; do
|
||||||
sed -i -e "s/ProjectName/$newProjectName/g" "./$file"
|
sed -i -e "s/ProjectName/$newProjectName/g" "./$file"
|
||||||
rm ./${file}-e
|
if [ "$(uname)" == "Darwin" ]; then
|
||||||
|
rm ./${file}-e
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
mv ./ProjectName.Core.sln "./$newProjectName.Core.sln"
|
mv ./ProjectName.Core.sln "./$newProjectName.Core.sln"
|
||||||
|
|
Loading…
Reference in New Issue