Diff of /smage/trunk/include/mtools.sminc
Parent Directory | Revision Log | Patch
revision 5224 by niro, Mon Dec 16 13:58:37 2013 UTC | revision 5457 by niro, Tue Mar 25 10:49:20 2014 UTC | |
---|---|---|
# | Line 521 mdelete() | Line 521 mdelete() |
521 | fi | fi |
522 | ||
523 | [[ -z ${dest} ]] && die "No dest given." | [[ -z ${dest} ]] && die "No dest given." |
524 | [[ ! -e ${BINDIR}/${dest} ]] && die "${BINDIR}/${dest} does not exist." | for i in $(eval echo "${BINDIR}/${dest}") |
525 | do | |
526 | rm -v ${opts} ${BINDIR}/${dest} || die | if [[ -e ${i} ]] || [[ -L ${i} ]] |
527 | then | |
528 | rm -v ${opts} ${i} || die | |
529 | else | |
530 | die "${i} does not exist." | |
531 | fi | |
532 | done | |
533 | } | } |
534 | ||
535 | mmove() | mmove() |
|