Skip to content

Commit

Permalink
scripts: fix file name parsing in donwload link generator helper script
Browse files Browse the repository at this point in the history
  • Loading branch information
attilammagyar committed Jul 1, 2024
1 parent 0f15ff3 commit 3f54684
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/gen_download_links.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ get_os()
local file_name="$1"

printf "%s\n" "$file_name" \
| cut -d"-" -f3 \
| cut -d"-" -f4 \
| uppercase_first
}

Expand Down Expand Up @@ -94,7 +94,7 @@ get_plugin_type()
local file_name="$1"

printf "%s\n" "$file_name" \
| cut -d"-" -f6 \
| cut -d"-" -f7 \
| cut -d"." -f1 \
| sed "s/fst/FST (VST 2.4)/ ; s/vst3_single_file/VST 3 Single File/"
}
Expand All @@ -120,7 +120,7 @@ get_version()
local file_name="$1"

printf "v%s\n" "$file_name" \
| cut -d "-" -f 2 \
| cut -d "-" -f 3 \
| sed "s/_/./g"
}

Expand Down

0 comments on commit 3f54684

Please sign in to comment.