Commit 74d1d948140cc21772ee60630b15c316addb9944
- Diff rendering mode:
- inline
- side by side
new_project.sh
(2 / 2)
  | |||
69 | 69 | fi | |
70 | 70 | name=$(sed -n 's/^name = \(.*\)$/\1/p' $oldconfig) | |
71 | 71 | db=$(sed -n 's/^database = \(.*\)$/\1/p' $oldconfig) | |
72 | $db=${db//\//\\/} | ||
72 | db=${db//\//\\/} | ||
73 | 73 | $(cp $newconfig $oldconfig) | |
74 | $newconfig=$oldconfig | ||
74 | newconfig=$oldconfig | ||
75 | 75 | $(sed -i "s/^name =$/name = $name/" $newconfig) | |
76 | 76 | $(sed -i "s/^database =$/database = $db/" $newconfig) | |
77 | 77 | } |