From 771957d2d20a5c5fe83881ef173859d4bb8bab65 Mon Sep 17 00:00:00 2001 From: Peter Cai Date: Thu, 29 Dec 2022 16:09:50 -0500 Subject: [PATCH] Fix redirection again --- gocrypt.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gocrypt.bash b/gocrypt.bash index c6f8608..aac89b0 100755 --- a/gocrypt.bash +++ b/gocrypt.bash @@ -156,7 +156,7 @@ gocrypt_close() { [ $# -eq 0 ] || gocrypt_die "Unexpected argument" gocrypt_open_check # Remove the systemd task for closing if present - which systemctl > /dev/null && systemctl --user stop "$(gocrypt_unique_task_identifier).timer" > /dev/null 2>1 + which systemctl > /dev/null && systemctl --user stop "$(gocrypt_unique_task_identifier).timer" > /dev/null 2>&1 fusermount -u "$gocrypt_dec_dir" || fusermount -u -z "$gocrypt_dec_dir" }