Skip to content

Commit

Permalink
tools/mksymtab.sh: Check sed expression
Browse files Browse the repository at this point in the history
sed: -e expression #1, char 0: no previous regular expression

Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
  • Loading branch information
JianyuWang0623 authored and xiaoxiang781216 committed Sep 18, 2024
1 parent ddaec5f commit da83fa8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/mksymtab.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit da83fa8

Please sign in to comment.