Abort if open failed

master
Peter Cai 3 weeks ago
parent 5c6f1af52c
commit 31e65661a5
  1. 2
      gocrypt.bash

@ -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…
Cancel
Save