PHP
·
发表于 5年以前
·
阅读量:7434
basepath=$(cd `dirname $0`; pwd)
#basepath是当前执行文件(bash文件)的绝对路径
dirname $0
,进入这个目录(切换当前工作目录)