From 20fcc72ae160935f745a8433529eb48a9021c631 Mon Sep 17 00:00:00 2001 From: ohfp <1813007-ohfp@users.noreply.gitlab.com> Date: Tue, 2 Feb 2021 20:18:49 +0100 Subject: fix directory used for build --- scripts/build-librewolf-dpkg.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/build-librewolf-dpkg.sh b/scripts/build-librewolf-dpkg.sh index 13eb27d..0daba30 100755 --- a/scripts/build-librewolf-dpkg.sh +++ b/scripts/build-librewolf-dpkg.sh @@ -6,6 +6,8 @@ test -z "${librewolf_dpkg_conf}" && export librewolf_dpkg_conf="$( find "$( dirn test ! -r "${librewolf_dpkg_conf}" && { echo "Unable to load config file, which should be named the same as this script but with a .conf ending. Aborted." 1>&2 ; exit 1 ; } . "${librewolf_dpkg_conf}" +work_dir=${CI_PROJECT_DIR}/prepared/ + # Aborts the script upon any faliure set -e; @@ -54,7 +56,7 @@ bash rustup.sh -y source /root/.cargo/env cargo install --version 0.16.0 cbindgen -cd ${work_dir} +cd ${work_dir}/prepared dpkg-source -x librewolf_${pkgrel}-${pkgver}.dsc ${output_dir} cd ${output_dir} dpkg-buildpackage -us -uc -d -- cgit