Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/get-assignment4
1 files changed, 3 insertions, 1 deletions
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"