tools/mksymtab.sh: Check sed expression

sed: -e expression #1, char 0: no previous regular expression

Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
This commit is contained in:
wangjianyu3 2024-03-29 20:30:43 +08:00 committed by Xiang Xiao
parent ddaec5f188
commit da83fa8ab2

View File

@ -53,7 +53,9 @@ if [ -z "$varlist" ]; then
# Remove the intersection between them, and the remaining symbols are found in the main image
common=`echo "$varlist" | tr ' ' '\n' | grep -Fxf <(echo "$deflist" | tr ' ' '\n') | tr '\n' ' '`
varlist=`echo $varlist | sed "s/$common//g"`
if [ "x$common" != "x" ]; then
varlist=`echo $varlist | sed "s/$common//g"`
fi
fi
fi