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