summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-11-01 13:50:18 +0100
committerErich Eckner <git@eckner.net>2017-11-01 13:50:18 +0100
commit8b5a6a2d2ea6bc3c3489fac97f9a813adf072e59 (patch)
treede4f2cd542919928152f7e1dd3fdef1c051ff048 /bin
parent1d6551ca356cb05e0668997559dcf0db090457e5 (diff)
downloadbuilder-8b5a6a2d2ea6bc3c3489fac97f9a813adf072e59.tar.xz
bin/modify-package-state: fix typo
Diffstat (limited to 'bin')
-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() {