gluon-autoupdater: strip trailing - from model

This commit is contained in:
Nils Schneider 2014-01-13 12:45:55 +01:00
parent 2e155f9d09
commit 5f976809a1

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