#!/bin/bash # 获取脚本所在目录 function script_dir() { echo $(cd "$(dirname "$0")"; pwd) }