Updated Script: idd.sh - Changed default image search path to /home

This commit is contained in:
mollusk 2016-07-06 13:12:10 -07:00
parent a0affb8860
commit 93bfc7d815

5
idd.sh
View File

@ -3,6 +3,7 @@
# Paths
MOUNTPATH="/mnt/mediadrive"
DEVICEDIR="/dev"
HOMEDIR="/home"
# Colors
RED='\033[0;31m'
@ -73,10 +74,10 @@ case "$1" in
printf "${LCYAN}idd - interactive dd${NC}\n"
printf "${LPURPLE}********************************${NC}\n"
echo
printf "${LGREEN}Image files (img, iso) in ${HOME}${NC}\n"
printf "${LGREEN}Image files (img, iso) in ${HOMEDIR}${NC}\n"
printf "${LBLUE}-------------------------------------------${NC}\n"
find ${HOME} -regex ".*\.\(img\|iso\)" | grep [.iso,.img]
find ${HOMEDIR} -regex ".*\.\(img\|iso\)" | grep [.iso,.img]
if [ ! $? = 0 ];then
printf "${LRED}No image files found${NC}\n"
fi