test-bugzilla-files/commands.sh |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

New commits:
commit 6c101264019009f90ecdc16aacb93e0319ed58bc
Author:     Gabor Kelemen <gabor.kelemen.ext...@allotropia.de>
AuthorDate: Mon Oct 24 11:02:24 2022 +0200
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Mon Oct 24 11:14:02 2022 +0200

    Try loading config from ~/.config
    
    so that the dev-tools checkout can be anywhere
    
    Change-Id: Ib001f5d1f6edb06d038b24409b7e57744b9197c2
    Reviewed-on: https://gerrit.libreoffice.org/c/dev-tools/+/141724
    Reviewed-by: Caolán McNamara <caol...@redhat.com>
    Tested-by: Caolán McNamara <caol...@redhat.com>

diff --git a/test-bugzilla-files/commands.sh b/test-bugzilla-files/commands.sh
index c1076cc..5b7d843 100755
--- a/test-bugzilla-files/commands.sh
+++ b/test-bugzilla-files/commands.sh
@@ -1,6 +1,10 @@
 #!/bin/bash
-dir=$HOME/source/dev-tools/test-bugzilla-files
-source ${dir}/config
+if [ -f $HOME/.config/crashtesting.config ] ; then
+    source $HOME/.config/crashtesting.config
+else
+    dir=$HOME/source/dev-tools/test-bugzilla-files
+    source ${dir}/config
+fi
 cd "$CRASHTESTDATA"
 rm tmpdir/* -r
 rm current/* -r

Reply via email to