diff --git a/bolt/test/link_fdata.sh b/bolt/test/link_fdata.sh index 348dadc2957e..c7f41b876b05 100755 --- a/bolt/test/link_fdata.sh +++ b/bolt/test/link_fdata.sh @@ -7,12 +7,12 @@ mapfile -t symbols < <(nm --defined-only "$2") for line in "${symbols[@]}"; do val=$(echo $line | cut -d' ' -f1) - symname=$(echo $line | awk '{ $1=$2=""; print $0 }' | sed 's/^[ \t]*//') + symname=$(echo $line | awk '{ $1=$2=""; print $0 }' | sed 's|^[ \t]*||') if [ -z "$symname" ]; then continue fi if [ -z "${val##*[!0-9a-fA-F]*}" ]; then continue fi - sed -i -e "s/\#${symname}\#/$val/g" $3 + sed -i -e "s|\#${symname}\#|$val|g" $3 done