Skip to content

Commit

Permalink
should not show kindle no exist warning unless COPY flags is enabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
n-miyo committed Dec 11, 2010
1 parent 0e29bf7 commit 207b968
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions kdconv
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,13 @@ parseopt()
DSTFILE=$(cd "$(dirname "${2}")" && pwd)/$(basename "${2}")
[ ${OVERWRITE} -eq 1 -o ! -e "${DSTFILE}" ] \
|| err 1 "Already exist: ${DSTFILE}"
if [ ! -d "${KINDLEDOCPATH}" ]; then
warn "Warning: Kindle is not connected."
COPY=0
else
KINDLEDOCPATH=$(cd "$KINDLEDOCPATH" && pwd)
if [ ${COPY} -eq 1 ]; then
if [ ! -d "${KINDLEDOCPATH}" ]; then
warn "Warning: Kindle is not connected."
COPY=0
else
KINDLEDOCPATH=$(cd "$KINDLEDOCPATH" && pwd)
fi
fi

if [ ${DX} -eq 1 ]; then
Expand Down

0 comments on commit 207b968

Please sign in to comment.