if [ -f "${0%/*}/tools/bin/tools.sh" ]; then MODDIR="${0%/*}" operate="dumpname" . "${0%/*}/tools/bin/tools.sh" | tee "$MODDIR/log.txt" else echo "${0%/*}/tools/bin/tools.sh遺失" fi