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