diff options
author | Leah Rowe <leah@libreboot.org> | 2024-06-09 15:44:20 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2024-06-09 15:44:20 +0100 |
commit | 78426a97e57d3cfe77d8189a10a3c10125284426 (patch) | |
tree | 2aac88d9387f875fe62808104afd7a0be7ff8a5b /include | |
parent | e80c4b73ceb10c38a93c769e681afb947d9dfb1c (diff) |
lib.sh: more useful lock message
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include')
-rwxr-xr-x | include/lib.sh | 3 |
1 files changed, 2 insertions, 1 deletions
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" |