UseSwagger

if [ "$UseSwagger" != "true" ]; then
sed -i "s/"UseSwagger": true/"UseSwagger": false/g" appsettings.json
fi
if [ "$AutoMigrationEnabled" = "true" ]; then
sed -i "s/"AutoMigrationEnabled": false/"AutoMigrationEnabled": true/g" appsettings.json
fi

原文地址:https://www.cnblogs.com/shiningrise/p/9127186.html