Compare commits
2 commits
db2418c3af
...
31e65661a5
Author | SHA1 | Date | |
---|---|---|---|
Peter Cai | 31e65661a5 | ||
Peter Cai | 5c6f1af52c |
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue