Skip to content
Snippets Groups Projects
Commit 72bf28c8 authored by jurgenhaas's avatar jurgenhaas
Browse files

Bug fix: return can only be used in functions

parent 23834e83
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
NEWVERSION=$(curl -s "https://gitlab.lakedrops.com/api/v4/projects/282/repository/tags?order_by=updated&search=^v" | jq -r .[0].name) NEWVERSION=$(curl -s "https://gitlab.lakedrops.com/api/v4/projects/282/repository/tags?order_by=updated&search=^v" | jq -r .[0].name)
if [[ "$NEWVERSION" == "$L3DVERSION" ]]; then if [[ "$NEWVERSION" == "$L3DVERSION" ]]; then
return printf ""
else
printf "%s" $NEWVERSION
fi fi
printf "%s" $NEWVERSION
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment