#!/usr/bin/env bash

set -e

if ! [ -f /usr/share/wordlists/rockyou.txt ]; then
  # Show content without new shell + cd
  SHELL=/bin/true parrot-ls "/usr/share/wordlists"
  echo
  read -p "Do you want to extract the wordlist rockyou.txt? [Y/n] " confirm
  case $confirm in Y | y | "")
    echo "Extracting rockyou.txt.gz..."
    sudo gunzip -k /usr/share/wordlists/rockyou.txt.gz
    ;;
  esac
  echo
fi
parrot-ls "/usr/share/wordlists"
