Prevent weird bug in awk?

This commit is contained in:
Florine W. Dekker 2021-04-15 19:08:32 +02:00
parent a5b660694f
commit abfd840163
Signed by: FWDekker
GPG Key ID: B1B567AF58D6EE0F
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ npm ci
npm run deploy
echo "[[ Deploy ]] Extracting version info."
read -r major minor patch <<< "$(node -pe "require('./package.json').version" | awk '{split($0, a, "[\.\-\+]"); print a[1], a[2], a[3]}')"
read -r major minor patch <<< "$(node -pe "require('./package.json').version" | awk '{split($0, a, "[\.\+\-]"); print a[1], a[2], a[3]}')"
dst_dirs="$dst_dir/$major.$minor.$patch $dst_dir/$major.$minor.x $dst_dir/$major.x.x"
echo "[[ Deploy ]] Copying files from '$tmp_dir/dist' to the following directories: $dst_dirs"