From 48d389161f2c86efc2f1c0ecd24cbaae64524ae4 Mon Sep 17 00:00:00 2001
From: Patrick Cernko <pcernko@mpi-klsb.mpg.de>
Date: Tue, 30 Jan 2024 11:17:31 +0100
Subject: [PATCH] bugfix if called with './$0'

---
 import_mbox.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/import_mbox.sh b/import_mbox.sh
index 053e3d7..2f61736 100755
--- a/import_mbox.sh
+++ b/import_mbox.sh
@@ -3,6 +3,9 @@
 set -e
 
 base=$(dirname $0)
+if [ "$base" == '.' ]; then
+    base="$PWD"
+fi
 
 # import_mbox
 # List archive import
-- 
GitLab