[PATCH] cr_tests: Fix quoting in common.sh

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Matt Helsley <matthltc@xxxxxxxxxx>
---
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@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/containers

[Index of Archives]     [Cgroups]     [Netdev]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux