Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/modify-package-state
diff options
context:
space:
mode:
Diffstat (limited to 'bin/modify-package-state')
-rwxr-xr-xbin/modify-package-state4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/modify-package-state b/bin/modify-package-state
index 9a2c2c7..38e099a 100755
--- a/bin/modify-package-state
+++ b/bin/modify-package-state
@@ -88,10 +88,10 @@ fi
input_file="$1"
if ${report}; then
- if ! [ -w "${output_file}" ]; then
+ if ! [ -w "${input_file}" ]; then
>&2 printf \
'Cannot open file "%s" for writing.' \
- "${output_file}"
+ "${input_file}"
exit 2
fi
move_output() {