Okay. Here is what I had written for the script:
#!/bin/sh
# YOSEMITESCRIPT.sh
#
#
# Created by AppleReviewGuy on 6/4/14.
#
# THIS IS A FREE SOFTWARE, IF YOU PAID FOR THIS DEMAND A REFUND
#
#
# Thanks to: Rough Edge for info, 128keaton for help & writing the guide!
# Feel free to mod this script and improve upon it
#
#
https://forums.macrumors.com/threads/1740775/
#
echo "Welcome! This script will create a Yosemite install drive, along with installing the Clover EFI to it. When you run this script, be sure to run it as su and make sure that only the drive that you plan on using and your current OS X partition are plugged in. If you are unsure of what drives were plugged in when you booted your Mac, turn off, unplug all except OS X drive, start it up, and then plug in the drive you want to use as your Yosemite installer. Please leave this folder in your downloads.
"
echo "Are you aware that this is beta software, and AppleReviewGuy is not responsible for any damage to hardware that it may cause?"
echo "Selecting yes will now start the install of Yosemite to /dev/disk2."
PS3='Selection: '
options=("Yes!" "No.")
select opt in "${options[@]}"
do
case $opt in
"Yes!")
echo Opening InstallESD.dmg
open /Applications/Install\ OS\ X\ 10.10\ Developer\ Preview.app/Contents/SharedSupport/InstallESD.dmg
sleep 25
wait
echo InstallESD.dmg opened
echo Now copying BaseSystem.dmg to /dev/disk2s2
diskutil unmountDisk /dev/disk2
sudo dd if=/Volumes/OS\ X\ Install\ ESD/BaseSystem.dmg of=/dev/disk2s2 bs=1m
sleep 180
wait
echo BaseSystem.dmg copied
echo Now copying extra files from InstallESD.dmg
cp /Volumes/OS\ X\ Install\ ESD/BaseSystem.dmg /Volumes/OS\ X\ Base\ System/
cp /Volumes/OS\ X\ Install\ ESD/BaseSystem.chunklist /Volumes/OS\ X\ Base\ System/
echo Extra files copied
echo Deleting packages alias
rm -Rf /Volumes/OS\ X\ Base\ System/System/Installation/Packages
echo Packages alias deleted
echo Now copying packages to USB drive. This will take a long time!
mkdir /Volumes/OS\ X\ Base\ System/System/Installation/Packages
cp -r /Volumes/OS\ X\ Install\ ESD/Packages /Volumes/OS\ X\ Base\ System/System/Installation/Packages
echo All packages copied.
echo Now copying Clover
cd ~/Downloads/YosemiteScript/
cp -r Files/EFI\ files/ /Volumes/OS\ X\ Base\ System/
echo Clover copied.
;;
"No.")
break
;;
*) echo invalid option;;
esac
done