Compare commits

...

2 commits

Author SHA1 Message Date
Peter Cai 31e65661a5 Abort if open failed 2022-11-16 10:27:56 -05:00
Peter Cai 5c6f1af52c Fix typo in stderr redirection 2022-11-16 10:24:24 -05:00

View file

@ -52,7 +52,7 @@ gocrypt_spawn_close_task() {
local task_name="$(gocrypt_unique_task_identifier)"
# Cancel any previous task that might be present
systemctl --user stop "$task_name.timer" > /dev/null 2>1
systemctl --user stop "$task_name.timer" > /dev/null 2>&1
# Create a new task
systemd-run --user --on-active=$gocrypt_close_timeout --unit="$task_name" \
@ -147,7 +147,7 @@ gocrypt_open() {
fi
fi
gocryptfs -passfile /dev/stdin "$gocrypt_dir" "$gocrypt_dec_dir" <<< "$gocrypt_passwd"
gocryptfs -passfile /dev/stdin "$gocrypt_dir" "$gocrypt_dec_dir" <<< "$gocrypt_passwd" || gocrypt_die "Unable to decrypt"
gocrypt_spawn_close_task
}