From: Stephen Boyd Date: Sun, 1 Apr 2012 06:41:07 +0000 (-0700) Subject: Subject: [PATCH] tags.sh: Add missing quotes X-Git-Tag: MMI-PSA29.97-13-9~16934^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0eb043d0eec44cd083ea6910b1db2f77eb212ebd;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git Subject: [PATCH] tags.sh: Add missing quotes When $remove_structs is empty a test for empty string will turn into test -n with no arguments meaning true. Add quotes so an empty string is tested and so that make cscope works again. Reported-and-tested-by: Jike Song Reported-by: Prarit Bhargava Acked-by: Yang Bai Signed-off-by: Stephen Boyd Signed-off-by: Michal Marek --- diff --git a/scripts/tags.sh b/scripts/tags.sh index 0d6004e20658..cf7b12fee573 100755 --- a/scripts/tags.sh +++ b/scripts/tags.sh @@ -254,6 +254,6 @@ case "$1" in esac # Remove structure forward declarations. -if [ -n $remove_structs ]; then +if [ -n "$remove_structs" ]; then LANG=C sed -i -e '/^\([a-zA-Z_][a-zA-Z0-9_]*\)\t.*\t\/\^struct \1;.*\$\/;"\tx$/d' $1 fi