History

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.

Stephen Boyd committed 14 years ago

Commit 0eb043d1 parent dd775ae1 file · +1 −1Browse files

Unified · Split

scripts/tags.sh+1−1
@@ -254,6 +254,6 @@ case "$1" in · 253 unmodified lines
254254 esac
255255
256256 # Remove structure forward declarations.
257−if [ -n $remove_structs ]; then
257+if [ -n "$remove_structs" ]; then
258258 LANG=C sed -i -e '/^\([a-zA-Z_][a-zA-Z0-9_]*\)\t.*\t\/\^struct \1;.*\$\/;"\tx$/d' $1
259259 fi