[Devel] [PATCH] cr_tests: Fix quoting in common.sh

Matt Helsley matthltc at us.ibm.com
Sun Jul 12 20:25:26 PDT 2009


When doing a very quick scan of shell script it's hard to notice the
difference between ' and `.

Signed-off-by: Matt Helsley <matthltc at us.ibm.com>
---
Caught by my vim config which does syntax highlighting. Otherwise I
might not have noticed.

 common.sh |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/common.sh b/common.sh
index 002cd47..d889242 100644
--- a/common.sh
+++ b/common.sh
@@ -50,13 +50,13 @@ thaw()
 
 get_ltp_user()
 {
-	awk -F: '{ print $1 '} /etc/passwd | grep "\<ltp\>"
+	awk -F: '{ print $1 }' /etc/passwd | grep "\<ltp\>"
 	if [ $? -ne 0 ]; then
 		echo "I refuse to mess with your password file"
 		echo "please create a user named ltp"
 		uid=-1
 	fi
-	uid=`grep "\<ltp\>" /etc/passwd | awk -F: '{ print $3 '}`
+	uid=`grep "\<ltp\>" /etc/passwd | awk -F: '{ print $3 }'`
 }
 
 handlesigusr1()
-- 
1.5.6.3

_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers




More information about the Devel mailing list