#!/bin/bash

# Prompt for password
password=$(zenity --password --title="Enter password")

# Unlock and mount the encrypted dataset
echo "$password" | sudo zfs receive -o mountpoint=/mnt rpool/encrypted

# Check if the dataset is successfully mounted
if [ $? -eq 0 ]; then
  zenity --info --text="The encrypted dataset is successfully mounted at /mnt"
else
  zenity --error --text="Failed to mount the encrypted dataset"
fi
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence