Skip to content

Commit

Permalink
fix(script): fixed a command format
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferdi Ardiansa committed Mar 1, 2024
1 parent 76473a9 commit 9718436
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/generate-release-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,12 @@ genereteVersion() {
populateArguments() {
for cmd in "$@";
do
IFS=-= read -a formattedValue <<< "${cmd//, ,}"
cmd="${cmd:2}"
IFS="=" read -a formattedValue <<< "${cmd//, ,}"
declare -p formattedValue

type="${formattedValue[2]}"
value="${formattedValue[3]}"
type="${formattedValue[0]}"
value="${formattedValue[1]}"

commands[${type}]=${value}
done
Expand Down

0 comments on commit 9718436

Please sign in to comment.