[Updated] idd.sh: Fixed quit function being checked after file checks

This commit is contained in:
mollusk 2016-07-07 18:19:08 -07:00
parent 0cff8f4962
commit 1df031fe3f

10
idd.sh
View File

@ -77,8 +77,8 @@ case "$1" in
printf "${YELLOW}Copy & paste full file path here: ${NC}" printf "${YELLOW}Copy & paste full file path here: ${NC}"
read filepath read filepath
CheckFile ${filepath}
Quit ${filepath} Quit ${filepath}
CheckFile ${filepath}
clear clear
Options Options
echo echo
@ -89,9 +89,10 @@ case "$1" in
echo echo
printf "${YELLOW}Enter name of device${NC} (${LCYAN}example${NC}, ${LBLUE}sdb${NC}): " printf "${YELLOW}Enter name of device${NC} (${LCYAN}example${NC}, ${LBLUE}sdb${NC}): "
read devname read devname
Quit ${devname}
DEVPATH="${DEVICEDIR}/${devname}" DEVPATH="${DEVICEDIR}/${devname}"
CheckDev ${DEVPATH} CheckDev ${DEVPATH}
Quit ${devname}
echo echo
@ -126,9 +127,9 @@ case "$1" in
printf "${YELLOW}Copy & paste full file path here: ${NC}" printf "${YELLOW}Copy & paste full file path here: ${NC}"
read filepath read filepath
Quit ${filepath}
CheckFile ${filepath} CheckFile ${filepath}
Quit ${filepath}
clear clear
Options Options
@ -140,10 +141,9 @@ case "$1" in
echo echo
printf "${YELLOW}Enter name of device${NC} (${LCYAN}example${NC}, ${LBLUE}sdb${NC}): " printf "${YELLOW}Enter name of device${NC} (${LCYAN}example${NC}, ${LBLUE}sdb${NC}): "
read devname read devname
Quit ${devname}
DEVPATH="${DEVICEDIR}/${devname}" DEVPATH="${DEVICEDIR}/${devname}"
CheckDev ${DEVPATH} CheckDev ${DEVPATH}
Quit ${devname}
echo echo