mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-22 12:54:26 +01:00
Replace double quotes by single ones
This commit is contained in:
parent
93ad8f04b5
commit
017ecf76e3
@ -51,13 +51,13 @@ semverLT() {
|
|||||||
if [ $MAJOR_A -le $MAJOR_B ] && [ $MINOR_A -le $MINOR_B ] && [ $PATCH_A -lt $PATCH_B ]; then
|
if [ $MAJOR_A -le $MAJOR_B ] && [ $MINOR_A -le $MINOR_B ] && [ $PATCH_A -lt $PATCH_B ]; then
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
if [ "_$SPECIAL_A" == "_" ] && [ "_$SPECIAL_B" == "_" ] ; then
|
if [ "_$SPECIAL_A" == '_' ] && [ "_$SPECIAL_B" == '_' ] ; then
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
if [ "_$SPECIAL_A" == "_" ] && [ "_$SPECIAL_B" != "_" ] ; then
|
if [ "_$SPECIAL_A" == '_' ] && [ "_$SPECIAL_B" != '_' ] ; then
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
if [ "_$SPECIAL_A" != "_" ] && [ "_$SPECIAL_B" == "_" ] ; then
|
if [ "_$SPECIAL_A" != '_' ] && [ "_$SPECIAL_B" == '_' ] ; then
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
if [ "_$SPECIAL_A" < "_$SPECIAL_B" ]; then
|
if [ "_$SPECIAL_A" < "_$SPECIAL_B" ]; then
|
||||||
@ -86,28 +86,28 @@ get_latest() {
|
|||||||
# Ex: v0.10.1 false false v0.9.1-rc.1 false true v0.9.0 false false...
|
# Ex: v0.10.1 false false v0.9.1-rc.1 false true v0.9.0 false false...
|
||||||
|
|
||||||
i=0
|
i=0
|
||||||
latest=""
|
latest=''
|
||||||
current_tag=""
|
current_tag=''
|
||||||
for release_info in $releases; do
|
for release_info in $releases; do
|
||||||
if [ $i -eq 0 ]; then # Cheking tag_name
|
if [ $i -eq 0 ]; then # Cheking tag_name
|
||||||
if echo "$release_info" | grep -q "$GREP_SEMVER_REGEXP"; then # If it's not an alpha or beta release
|
if echo "$release_info" | grep -q "$GREP_SEMVER_REGEXP"; then # If it's not an alpha or beta release
|
||||||
current_tag=$release_info
|
current_tag=$release_info
|
||||||
else
|
else
|
||||||
current_tag=""
|
current_tag=''
|
||||||
fi
|
fi
|
||||||
i=1
|
i=1
|
||||||
elif [ $i -eq 1 ]; then # Checking draft boolean
|
elif [ $i -eq 1 ]; then # Checking draft boolean
|
||||||
if [ "$release_info" = "true" ]; then
|
if [ "$release_info" = 'true' ]; then
|
||||||
current_tag=""
|
current_tag=''
|
||||||
fi
|
fi
|
||||||
i=2
|
i=2
|
||||||
elif [ $i -eq 2 ]; then # Checking prerelease boolean
|
elif [ $i -eq 2 ]; then # Checking prerelease boolean
|
||||||
if [ "$release_info" = "true" ]; then
|
if [ "$release_info" = 'true' ]; then
|
||||||
current_tag=""
|
current_tag=''
|
||||||
fi
|
fi
|
||||||
i=0
|
i=0
|
||||||
if [ "$current_tag" != "" ]; then # If the current_tag is valid
|
if [ "$current_tag" != '' ]; then # If the current_tag is valid
|
||||||
if [ "$latest" = "" ]; then # If there is no latest yet
|
if [ "$latest" = '' ]; then # If there is no latest yet
|
||||||
latest="$current_tag"
|
latest="$current_tag"
|
||||||
else
|
else
|
||||||
semverLT $current_tag $latest # Comparing latest and the current tag
|
semverLT $current_tag $latest # Comparing latest and the current tag
|
||||||
|
Loading…
Reference in New Issue
Block a user