diff --git a/build.sh b/build.sh index 49d9d7c7d6a..7f5bf3d00a8 100644 --- a/build.sh +++ b/build.sh @@ -8,7 +8,7 @@ if [ "$1" = "dev" ]; then version="dev" webVersion="dev" else - version=$(git describe --long --tags --dirty --always) + version=$(git describe --abbrev=0 --tags) webVersion=$(wget -qO- -t1 -T2 "https://api.github.com/repos/alist-org/alist-web/releases/latest" | grep "tag_name" | head -n 1 | awk -F ":" '{print $2}' | sed 's/\"//g;s/,//g;s/ //g') fi