gluon-autoupdater: strip trailing - from model

This commit is contained in:
Nils Schneider 2014-01-13 12:45:55 +01:00
parent f3fec005e9
commit 137a311e1e
1 changed files with 1 additions and 1 deletions

View File

@ -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