Commit 0eb043d0 authored by Stephen Boyd's avatar Stephen Boyd Committed by Michal Marek

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: default avatarJike Song <albcamus@gmail.com>
Reported-by: default avatarPrarit Bhargava <prarit@redhat.com>
Acked-by: default avatarYang Bai <hamo.by@gmail.com>
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
Signed-off-by: default avatarMichal Marek <mmarek@suse.cz>
parent dd775ae2
...@@ -254,6 +254,6 @@ case "$1" in ...@@ -254,6 +254,6 @@ case "$1" in
esac esac
# Remove structure forward declarations. # 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 LANG=C sed -i -e '/^\([a-zA-Z_][a-zA-Z0-9_]*\)\t.*\t\/\^struct \1;.*\$\/;"\tx$/d' $1
fi fi
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment