1
0

build scripts: add quotes around some paths (#7949)

* Update make_libsecp256k1.sh

Avoid error when parent folder has spaces `./make_libsecp256k1.sh: line 31: cd: too many arguments`

* Avoid error when parent folder has spaces, fix for make_libsecp256k1.sh, make_zbar.sh and make_libusb.sh

Co-authored-by: ghost43 <somber.night@protonmail.com>
This commit is contained in:
TadeuBAS
2022-08-24 11:18:39 -03:00
committed by GitHub
parent 3295671e5b
commit 39c3d0585d
3 changed files with 6 additions and 6 deletions

View File

@@ -20,7 +20,7 @@ set -e
. $(dirname "$0")/build_tools_util.sh || (echo "Could not source build_tools_util.sh" && exit 1)
here=$(dirname $(realpath "$0" 2> /dev/null || grealpath "$0"))
here="$(dirname "$(realpath "$0" 2> /dev/null || grealpath "$0")")"
CONTRIB="$here"
PROJECT_ROOT="$CONTRIB/.."
@@ -28,7 +28,7 @@ pkgname="secp256k1"
info "Building $pkgname..."
(
cd $CONTRIB
cd "$CONTRIB"
if [ ! -d secp256k1 ]; then
git clone https://github.com/bitcoin-core/secp256k1.git
fi

View File

@@ -7,7 +7,7 @@ set -e
. $(dirname "$0")/build_tools_util.sh || (echo "Could not source build_tools_util.sh" && exit 1)
here=$(dirname $(realpath "$0" 2> /dev/null || grealpath "$0"))
here="$(dirname "$(realpath "$0" 2> /dev/null || grealpath "$0")")"
CONTRIB="$here"
PROJECT_ROOT="$CONTRIB/.."
@@ -15,7 +15,7 @@ pkgname="libusb"
info "Building $pkgname..."
(
cd $CONTRIB
cd "$CONTRIB"
if [ ! -d libusb ]; then
git clone https://github.com/libusb/libusb.git
fi

View File

@@ -16,7 +16,7 @@ set -e
. $(dirname "$0")/build_tools_util.sh || (echo "Could not source build_tools_util.sh" && exit 1)
here=$(dirname $(realpath "$0" 2> /dev/null || grealpath "$0"))
here="$(dirname "$(realpath "$0" 2> /dev/null || grealpath "$0")")"
CONTRIB="$here"
PROJECT_ROOT="$CONTRIB/.."
@@ -24,7 +24,7 @@ pkgname="zbar"
info "Building $pkgname..."
(
cd $CONTRIB
cd "$CONTRIB"
if [ ! -d zbar ]; then
git clone https://github.com/mchehab/zbar.git
fi