Browse Source

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>
patch-4
TadeuBAS 2 years ago
committed by GitHub
parent
commit
39c3d0585d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      contrib/make_libsecp256k1.sh
  2. 4
      contrib/make_libusb.sh
  3. 4
      contrib/make_zbar.sh

4
contrib/make_libsecp256k1.sh

@ -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

4
contrib/make_libusb.sh

@ -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

4
contrib/make_zbar.sh

@ -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

Loading…
Cancel
Save