Skip to content
Snippets Groups Projects
Commit 5f976809 authored by Nils Schneider's avatar Nils Schneider
Browse files

gluon-autoupdater: strip trailing - from model

parent 2e155f9d
No related branches found
No related tags found
No related merge requests found
......@@ -38,7 +38,7 @@ cleanup() {
trap cleanup INT TERM EXIT PIPE
. /lib/gluon/functions/model.sh
my_model="$(get_model | tr '[A-Z]' '[a-z]' | sed -r 's/[^a-z0-9]+/-/g')"
my_model="$(get_model | tr '[A-Z]' '[a-z]' | sed -r 's/[^a-z0-9]+/-/g;s/-$//')"
if [ ! -f "$VERSION_FILE" ]; then
echo "Couldn't determine firmware version!" >&2
......
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