--- a/new_project.sh +++ b/new_project.sh @@ -69,9 +69,9 @@ fi name=$(sed -n 's/^name = \(.*\)$/\1/p' $oldconfig) db=$(sed -n 's/^database = \(.*\)$/\1/p' $oldconfig) - $db=${db//\//\\/} + db=${db//\//\\/} $(cp $newconfig $oldconfig) - $newconfig=$oldconfig + newconfig=$oldconfig $(sed -i "s/^name =$/name = $name/" $newconfig) $(sed -i "s/^database =$/database = $db/" $newconfig) }