Skip to content

Conversation

@svarrette-anssi
Copy link
Contributor

Fix shellcheck warnings, simplify command checks

Signed-off-by: Sebastien Varrette <sebastien.varrette@ssi.gouv.fr>
else
OLDIFS=$IFS
IFS=. v1=($newVer) v2=($currVer)
IFS=. v1=("$newVer") v2=("$currVer")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I’m getting this error:

MultiOS-USB updater
./multios-usb.sh: line 214: [[: 0.11.5: syntax error: invalid arithmetic operator (error token is ".11.5")
./multios-usb.sh: line 217: [[: 0.11.5: syntax error: invalid arithmetic operator (error token is ".11.5")

Configuration is up to date

I think we should leave it unchanged.

Suggested change
IFS=. v1=("$newVer") v2=("$currVer")
IFS=. v1=($newVer) v2=($currVer)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants