diff --git a/build/bin/wfcupgrade.sh b/build/bin/wfcupgrade.sh index c3b5a09..fa92047 100755 --- a/build/bin/wfcupgrade.sh +++ b/build/bin/wfcupgrade.sh @@ -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() {