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.
Showing the changes to scripts (1 of 1 file). Show all
Unified · Split
| @@ -254,6 +254,6 @@ case "$1" in · 253 unmodified lines | ||
| 254 | 254 | esac |
| 255 | 255 | |
| 256 | 256 | # Remove structure forward declarations. |
| 257 | −if [ -n $remove_structs ]; then | |
| 257 | +if [ -n "$remove_structs" ]; then | |
| 258 | 258 | LANG=C sed -i -e '/^\([a-zA-Z_][a-zA-Z0-9_]*\)\t.*\t\/\^struct \1;.*\$\/;"\tx$/d' $1 |
| 259 | 259 | fi |