From 8b5a6a2d2ea6bc3c3489fac97f9a813adf072e59 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 1 Nov 2017 13:50:18 +0100 Subject: bin/modify-package-state: fix typo --- bin/modify-package-state | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') 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() { -- cgit v1.2.3