Fix a build error if the source folder has a space

If the source folder has a space in the path then the build fails as $(dirname "$0")/combine-libraries.sh has a space in it. This changes adds quotes around the directory name.
This commit is contained in:
Richard Groves
2021-07-23 12:46:56 +01:00
committed by GitHub
parent dbb05c0bc8
commit 48156e3031

View File

@@ -10,7 +10,8 @@ cp -Rv "$1" "$3"
# Combining libraries.
product_name=${1##*/}
product_name=${product_name%.*}
$(dirname "$0")/combine-libraries.sh \
script_folder=$(dirname "$0")
"${script_folder}"/combine-libraries.sh \
"$1/${product_name}" \
"$2/${product_name}" \
"$3/${product_name}"