Skip to content

Commit da83fa8

Browse files
JianyuWang0623xiaoxiang781216
authored andcommitted
tools/mksymtab.sh: Check sed expression
sed: -e expression #1, char 0: no previous regular expression Signed-off-by: wangjianyu3 <[email protected]>
1 parent ddaec5f commit da83fa8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: tools/mksymtab.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ if [ -z "$varlist" ]; then
5353

5454
# Remove the intersection between them, and the remaining symbols are found in the main image
5555
common=`echo "$varlist" | tr ' ' '\n' | grep -Fxf <(echo "$deflist" | tr ' ' '\n') | tr '\n' ' '`
56-
varlist=`echo $varlist | sed "s/$common//g"`
56+
if [ "x$common" != "x" ]; then
57+
varlist=`echo $varlist | sed "s/$common//g"`
58+
fi
5759
fi
5860
fi
5961

0 commit comments

Comments
 (0)