Skip to contentSkip to conversation

cr_tests: Fix quoting in common.sh

PATCH New Matt Helsley 1 participant 1 message Jul 13, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cr_tests: Fix quoting in common.sh

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

---
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(-)
common.sh +2 -2
index 002cd47..d889242 100644
@@ -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()
Signature · 1 line
1.5.6.3