2
0

fix: upgrade shell for new install

This commit is contained in:
zhangsz
2025-02-28 10:37:12 +08:00
parent 7150617b10
commit c641df9010

View File

@@ -7,7 +7,11 @@ docker_work_dir=${wfc_work_dir}/docker
new_version=$(grep '^VERSION_ID=' ${docker_work_dir}/env/wfc-release | cut -d'=' -f2 | tr -d '"')
# Get the original version number
old_version=$(grep '^VERSION_ID=' ${docker_work_dir}/.wfc-release | cut -d'=' -f2 | tr -d '"')
if [ -f ${docker_work_dir}/.wfc-release ]; then
old_version=$(grep '^VERSION_ID=' ${docker_work_dir}/.wfc-release | cut -d'=' -f2 | tr -d '"')
else
old_version=$new_version
fi
# Convert the version number to a comparable format
version_to_number() {