Fixed case statement issues

This commit is contained in:
Maxim Stewart 2020-05-02 06:00:37 -05:00
parent 2337b9ed2c
commit 6f1337c4c3
3 changed files with 25 additions and 25 deletions

View File

@ -20,19 +20,19 @@ function main() {
read -p "--> : " ANSR
done
case $ANSR in
"1" ) run_once_process; break;;
"2" ) ./GET_PPA_REPOSITORIES.sh; break;;
"3" ) ./GET_PPA_GPG_KEYS.sh; break;;
"4" ) get_live_iso_dependencies; break;;
"5" ) base; break;;
"6" ) gaming; break;;
"7" ) media; break;;
"8" ) office; break;;
"9" ) debs; break;;
"10" ) transfer_settings; break;;
"11" ) ./CLEANUP.sh; break;;
"0" ) exit; break;;
* ) echo "Don't know how you got here but that's a bad sign..."; break;;
"1" ) run_once_process;;
"2" ) ./GET_PPA_REPOSITORIES.sh;;
"3" ) ./GET_PPA_GPG_KEYS.sh;;
"4" ) get_live_iso_dependencies;;
"5" ) base;;
"6" ) gaming;;
"7" ) media;;
"8" ) office;;
"9" ) debs;;
"10" ) transfer_settings;;
"11" ) ./CLEANUP.sh;;
"0" ) exit;;
* ) echo "Don't know how you got here but that's a bad sign...";;
esac
}

View File

@ -20,19 +20,19 @@ function main() {
read -p "--> : " ANSR
done
case $ANSR in
"1" ) do_all_run; break;;
"1" ) do_all_run;;
# First setup the debootstrap env...
"2" ) ./step_1_debootstrap.sh; break;;
"2" ) ./step_1_debootstrap.sh;;
# Then setup and run chroot...
"3" ) ./step_2_chroot.sh; break;;
"3" ) ./step_2_chroot.sh;;
# Create the boot structure data...
"4" ) ./step_3_create_boot_structure.sh; break;;
"4" ) ./step_3_create_boot_structure.sh;;
# Create the CD...
"5" ) ./step_4_create_CD.sh; break;;
"5" ) ./step_4_create_CD.sh;;
# Purge everythin and start fresh...
"6" ) ./cleanup.sh; break;;
"0" ) exit; break;;
* ) echo "Don't know how you got here but that's a bad sign..."; break;;
"6" ) ./cleanup.sh;;
"0" ) exit;;
* ) echo "Don't know how you got here but that's a bad sign...";;
esac
}

View File

@ -12,15 +12,15 @@ function main() {
move_iso_linux_parts;
echo "\nWhich boot style do you want to use?"
echo "\t 1) Text Boot"
echo "\t 2) GUI Boot"
echo "\t1) Text Boot"
echo "\t2) GUI Boot"
read -p "--> : " ANSR
while [[ $ANSR != "1" ]] && [[ $ANSR != "2" ]]; do
read -p "--> : " ANSR
done
case $ANSR in
"1" ) isolinux_text_boot; break;;
"2" ) isolinux_gui_boot; break;;
"1" ) isolinux_text_boot;;
"2" ) isolinux_gui_boot;;
esac
echo "Creating manifest..."