From 2343adda3b7cb6bdb94441de68f467a3ff56ceeb Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Sat, 6 Dec 2014 16:03:02 -0800 Subject: [PATCH] fix patch issue. --- patch-bitcoin.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/patch-bitcoin.sh b/patch-bitcoin.sh index d2a27e88..2b6c2cdb 100755 --- a/patch-bitcoin.sh +++ b/patch-bitcoin.sh @@ -1,6 +1,7 @@ #!/bin/sh dir=$(test -n "$1" && echo "$1" || echo "${HOME}/bitcoin") +patch_file="$(pwd)/libbitcoind.patch" cd "$dir" || exit 1 @@ -8,7 +9,7 @@ if test -e .git; then git checkout -b libbitcoind || exit 1 fi -patch -p1 < libbitcoind.patch || exit 1 +patch -p1 < "$patch_file" || exit 1 if test -e .git; then git add --all || exit 1