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)
|
||||
for file in "${files[@]}"; do
|
||||
sed -i -e "s/ProjectName/$newProjectName/g" "./$file"
|
||||
if [ "$(uname)" == "Darwin" ]; then
|
||||
rm ./${file}-e
|
||||
fi
|
||||
done
|
||||
|
||||
mv ./ProjectName.Core.sln "./$newProjectName.Core.sln"
|
||||
|
|
Loading…
Reference in New Issue