#!/bin/bash

echo "Who are you:"
sleep 1
name="$(cat people.lst|fzf)"
echo "$name"

echo "What is your stations:"
sleep 1
station="$(cat stations.lst|fzf)"
echo "$station"

echo "What is your truck:"
sleep 1
truck="$(cat trucks.lst|fzf)"
echo "$truck"

echo "What is the issue?"
read comment

clear
cat << EOF

=======================================
$name,

You have entered a issue with $truck
at $station

The issue is the following:
$comment
======================================
EOF

echo "Would you like to submit this? (y/N)"
read -n1 submit

echo ""

if [ "$submit" = "y" ];then
  echo "Submitted"
else
  echo "Cancelled"
fi

echo "Goodbye..."

