summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/return-assignment4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/return-assignment b/bin/return-assignment
index 04648ca..62b0796 100755
--- a/bin/return-assignment
+++ b/bin/return-assignment
@@ -170,4 +170,6 @@ grep "^${1//./\\.}\$" "${work_dir}/build-list.loops/loop_"* 2> /dev/null | \
sed -i "/^${1//./\\.} $2 $3 $4\$/d" "${work_dir}/build-list"
# remove package lock file
-mv "${work_dir}/package-states/$1.$2.$3.$4."{locked,done}
+printf '%s\n' "${packages[@]}" > \
+ "${work_dir}/package-states/$1.$2.$3.$4.done"
+rm "${work_dir}/package-states/$1.$2.$3.$4.locked"