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:
@@ -20,7 +20,7 @@ set -e
|
|||||||
|
|
||||||
. $(dirname "$0")/build_tools_util.sh || (echo "Could not source build_tools_util.sh" && exit 1)
|
. $(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"
|
CONTRIB="$here"
|
||||||
PROJECT_ROOT="$CONTRIB/.."
|
PROJECT_ROOT="$CONTRIB/.."
|
||||||
|
|
||||||
@@ -28,7 +28,7 @@ pkgname="secp256k1"
|
|||||||
info "Building $pkgname..."
|
info "Building $pkgname..."
|
||||||
|
|
||||||
(
|
(
|
||||||
cd $CONTRIB
|
cd "$CONTRIB"
|
||||||
if [ ! -d secp256k1 ]; then
|
if [ ! -d secp256k1 ]; then
|
||||||
git clone https://github.com/bitcoin-core/secp256k1.git
|
git clone https://github.com/bitcoin-core/secp256k1.git
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ set -e
|
|||||||
|
|
||||||
. $(dirname "$0")/build_tools_util.sh || (echo "Could not source build_tools_util.sh" && exit 1)
|
. $(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"
|
CONTRIB="$here"
|
||||||
PROJECT_ROOT="$CONTRIB/.."
|
PROJECT_ROOT="$CONTRIB/.."
|
||||||
|
|
||||||
@@ -15,7 +15,7 @@ pkgname="libusb"
|
|||||||
info "Building $pkgname..."
|
info "Building $pkgname..."
|
||||||
|
|
||||||
(
|
(
|
||||||
cd $CONTRIB
|
cd "$CONTRIB"
|
||||||
if [ ! -d libusb ]; then
|
if [ ! -d libusb ]; then
|
||||||
git clone https://github.com/libusb/libusb.git
|
git clone https://github.com/libusb/libusb.git
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ set -e
|
|||||||
|
|
||||||
. $(dirname "$0")/build_tools_util.sh || (echo "Could not source build_tools_util.sh" && exit 1)
|
. $(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"
|
CONTRIB="$here"
|
||||||
PROJECT_ROOT="$CONTRIB/.."
|
PROJECT_ROOT="$CONTRIB/.."
|
||||||
|
|
||||||
@@ -24,7 +24,7 @@ pkgname="zbar"
|
|||||||
info "Building $pkgname..."
|
info "Building $pkgname..."
|
||||||
|
|
||||||
(
|
(
|
||||||
cd $CONTRIB
|
cd "$CONTRIB"
|
||||||
if [ ! -d zbar ]; then
|
if [ ! -d zbar ]; then
|
||||||
git clone https://github.com/mchehab/zbar.git
|
git clone https://github.com/mchehab/zbar.git
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user