From 74d1d948140cc21772ee60630b15c316addb9944 Mon Sep 17 00:00:00 2001 From: Anon Ray Date: Thu, 23 May 2013 20:40:55 +0530 Subject: [PATCH] Fix mistakes with shell vars Fix re-assinging shell variables. --- new_project.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/new_project.sh b/new_project.sh index 5177e63..379e8f7 100755 --- a/new_project.sh +++ b/new_project.sh @@ -69,9 +69,9 @@ writeTracConfig() { 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) } -- 1.7.10.4