Hey guys and girls. I'm trying to write a bash script, and I'm trying to pull 2 variables from a file. The menu I'm currently working on is
(this is nowhere near the full set of code in the file. just fyi)
I'm trying to make the script pull from variables.txt that is created and populated earlier.
I tried
but it just hangs
Any help? thanks peeps!
Code:
echo
echo "============================================================"
echo " Build Menu. Please proceed in order. If you have completed"
echo " a step previously (IE prepare system or downloaded the source"
echo " for the same version you are rebuilding, you may skip. Just"
echo " select update, then build."
echo "============================================================"
echo
echo " Device Selection"
echo
echo "> Build Menu"
echo
echo
echo " 1) - Prepare your Environment"
echo " 2) - Prepare ADB"
echo " 3) - Download the Source"
echo " 4) - Prepare source for your $device and $version "
echo " 5) - Compile the source."
echo " 6) - Build a Custom kernel (If Available)"
echo " U) - Check for source updates"
echo " B) - Go Back"
echo " X) - Quit"
echo
..
(this is nowhere near the full set of code in the file. just fyi)
I'm trying to make the script pull from variables.txt that is created and populated earlier.
I tried
Code:
while read varibles.txt
do
start.sh $version $device ;;
Any help? thanks peeps!





