From 3d73461f75988701413e7f3d713117482c9d3bbb Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sat, 25 Nov 2017 18:49:44 +0100 Subject: bin/get-assignment: do not cat locked file for appending slave if not existent --- bin/get-assignment | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/get-assignment b/bin/get-assignment index f755204..82463a8 100755 --- a/bin/get-assignment +++ b/bin/get-assignment @@ -44,7 +44,9 @@ hand_out_assignment() { { # shellcheck disable=SC2154 echo "${slave}" - cat "${work_dir}/package-states/$1.$2.$3.$4.locked" + if [ -r "${work_dir}/package-states/$1.$2.$3.$4.locked" ]; then + cat "${work_dir}/package-states/$1.$2.$3.$4.locked" + fi } | \ sort -u | \ sponge "${work_dir}/package-states/$1.$2.$3.$4.locked" -- cgit v1.2.3-70-g09d2