This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
#!/bin/sh
# 指定脚本解释器为sh
# 获取当前脚本所在目录的绝对路径
# 1. "$0" 表示当前脚本的文件名
# 2. sed -e 's,\\,/,g' 将路径中的反斜杠(\)替换为斜杠(/),适配Windows系统路径格式
# 3. dirname 提取目录部分,得到脚本所在的目录路径
basedir=$(dirname "$(echo"$0"| sed -e 's,\\,/,g')")