Commit 74d1d948140cc21772ee60630b15c316addb9944

Fix mistakes with shell vars

  Fix re-assinging shell variables.
  • Diff rendering mode:
  • inline
  • side by side

new_project.sh

69 fi69 fi
70 name=$(sed -n 's/^name = \(.*\)$/\1/p' $oldconfig)70 name=$(sed -n 's/^name = \(.*\)$/\1/p' $oldconfig)
71 db=$(sed -n 's/^database = \(.*\)$/\1/p' $oldconfig)71 db=$(sed -n 's/^database = \(.*\)$/\1/p' $oldconfig)
72 $db=${db//\//\\/}
72 db=${db//\//\\/}
73 $(cp $newconfig $oldconfig)73 $(cp $newconfig $oldconfig)
74 $newconfig=$oldconfig
74 newconfig=$oldconfig
75 $(sed -i "s/^name =$/name = $name/" $newconfig)75 $(sed -i "s/^name =$/name = $name/" $newconfig)
76 $(sed -i "s/^database =$/database = $db/" $newconfig)76 $(sed -i "s/^database =$/database = $db/" $newconfig)
77}77}