#! /bin/sh # 脚本文件的绝对路径存在了环境变量filepath中,可以用 filepath=$(cd "$(dirname "$0")"; pwd) echo $filepath cd $filepath python3 git_download.py