chore: ensure no 'find' command error

the _upgrade_base dir must exist
This commit is contained in:
Zaiming (Stone) Shi 2022-09-06 18:48:59 +02:00
parent ac840e318e
commit 85cb552e53
1 changed files with 1 additions and 0 deletions

1
build
View File

@ -157,6 +157,7 @@ make_relup() {
local name_pattern local name_pattern
name_pattern="${PROFILE}-$(./pkg-vsn.sh "$PROFILE" --vsn_matcher --long)" name_pattern="${PROFILE}-$(./pkg-vsn.sh "$PROFILE" --vsn_matcher --long)"
local releases=() local releases=()
mkdir -p _upgrade_base
while read -r tgzfile ; do while read -r tgzfile ; do
local base_vsn local base_vsn
base_vsn="$(echo "$tgzfile" | grep -oE "[0-9]+\.[0-9]+\.[0-9]+(-(alpha|beta|rc)\.[0-9])?(-[0-9a-f]{8})?" | head -1)" base_vsn="$(echo "$tgzfile" | grep -oE "[0-9]+\.[0-9]+\.[0-9]+(-(alpha|beta|rc)\.[0-9])?(-[0-9a-f]{8})?" | head -1)"