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