From 78426a97e57d3cfe77d8189a10a3c10125284426 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sun, 9 Jun 2024 15:44:20 +0100 Subject: lib.sh: more useful lock message Signed-off-by: Leah Rowe --- include/lib.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/lib.sh b/include/lib.sh index b41645fb..c2ad87ed 100755 --- a/include/lib.sh +++ b/include/lib.sh @@ -70,7 +70,8 @@ if [ "$tmpdir_was_set" = "y" ]; then [ "${TMPDIR%_*}" = "/tmp/xbmk" ] || tmpdir_was_set="n" fi if [ "$tmpdir_was_set" = "n" ]; then - [ -f "lock" ] && $err "The 'lock' file exists. Is a build running?" + [ -f "lock" ] && \ + $err "$PWD/lock exists. If a build isn't going, delete and re-run." export TMPDIR="/tmp" tmpdir="$(mktemp -d -t xbmk_XXXXXXXX)" export TMPDIR="$tmpdir" -- cgit v1.2.1