summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGraham Gower2020-12-07 09:09:21 +0100
committerGraham Gower2020-12-07 09:09:21 +0100
commitf806ee693b267c3dc42ca25fe3adf22b87c3ab82 (patch)
treecb8063337cb5b88facb5e5af85850bad845b7415
parentd36bf2b90c485f6b6e0780f86ab49df9c411cc93 (diff)
downloadaur-f806ee693b267c3dc42ca25fe3adf22b87c3ab82.tar.gz
ensure build dir is not created outside $srcdir
-rw-r--r--PKGBUILD4
1 files changed, 2 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index ae2d24c5212..05c1a090519 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -16,10 +16,10 @@ md5sums=('SKIP')
prepare() {
if [ ! -z "$_gittag" ] ; then
- cd "${srcdir}/${_gitname}"
+ cd "${_gitname}"
git checkout $_gittag \
|| (echo "Couldn't checkout '${_gittag}'"; exit 1)
- cd ../..
+ cd ..
fi
mkdir -p build
}