Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/return-assignment
diff options
context:
space:
mode:
Diffstat (limited to 'bin/return-assignment')
-rwxr-xr-xbin/return-assignment8
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/return-assignment b/bin/return-assignment
index b8d1bb4..951eb8c 100755
--- a/bin/return-assignment
+++ b/bin/return-assignment
@@ -22,14 +22,16 @@
# Create a lock file and a trap.
-exec 9> "${lock_file}"
+exec 9> "${build_list_lock_file}"
if ! flock -n 9; then
- >&2 echo 'come back (shortly) later - I was running already'
+ >&2 echo 'come back (shortly) later - I cannot lock build list.'
+ exit
+fi
exit 1
fi
function clean_up {
- rm -f "${lock_file}"
+ rm -f "${build_list_lock_file}"
}
trap clean_up EXIT