Fix redirection again

This commit is contained in:
Peter Cai 2022-12-29 16:09:50 -05:00
parent 31e65661a5
commit 771957d2d2
1 changed files with 1 additions and 1 deletions

View File

@ -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"
}