From 7935d3fae46e004df5bc9eafadfdc253cccf10dc Mon Sep 17 00:00:00 2001 From: Stefan Saraev Date: Fri, 30 May 2014 16:44:01 +0300 Subject: [PATCH] scripts/image: fix etc/os-release --- scripts/image | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/image b/scripts/image index a7ef5f7c27..d4032d3d57 100755 --- a/scripts/image +++ b/scripts/image @@ -86,15 +86,15 @@ IMAGE_NAME="$DISTRONAME-$TARGET_VERSION" fi # create /etc/os-release - echo -e "NAME=$DISTRONAME" > $INSTALL/etc/os-release - echo -e "VERSION=$OPENELEC_VERSION" >> $INSTALL/etc/os-release - echo -e "ID=openelec" >> $INSTALL/etc/os-release - echo -e "VERSION_ID=$OS_VERSION" >> $INSTALL/etc/os-release - echo -e "PRETTY_NAME=$DISTRONAME ($([ "$OFFICIAL" = "yes" ] && echo "official" || echo "unofficial")) - Version: $OPENELEC_VERSION" >> $INSTALL/etc/os-release - echo -e "HOME_URL=http://www.openelec.tv" >> $INSTALL/etc/os-release - echo -e "BUG_REPORT_URL=https://github.com/OpenELEC/OpenELEC.tv" >> $INSTALL/etc/os-release + echo -e "NAME=\"$DISTRONAME\"" > $INSTALL/etc/os-release + echo -e "VERSION=\"$OPENELEC_VERSION\"" >> $INSTALL/etc/os-release + echo -e "ID=\"openelec\"" >> $INSTALL/etc/os-release + echo -e "VERSION_ID=\"$OS_VERSION\"" >> $INSTALL/etc/os-release + echo -e "PRETTY_NAME=\"$DISTRONAME ($([ "$OFFICIAL" = "yes" ] && echo "official" || echo "unofficial")) - Version: $OPENELEC_VERSION\"" >> $INSTALL/etc/os-release + echo -e "HOME_URL=\"http://www.openelec.tv\"" >> $INSTALL/etc/os-release + echo -e "BUG_REPORT_URL=\"https://github.com/OpenELEC/OpenELEC.tv\"" >> $INSTALL/etc/os-release if [ -n "$GIT_HASH" ]; then - echo -e "BUILD_ID=$GIT_HASH" >> $INSTALL/etc/os-release + echo -e "BUILD_ID=\"$GIT_HASH\"" >> $INSTALL/etc/os-release fi