Merge "Change regular pyagl invocation to nohw"
authorJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Mon, 14 Sep 2020 16:17:58 +0000 (16:17 +0000)
committerGerrit Code Review <gerrit@automotivelinux.org>
Mon, 14 Sep 2020 16:17:58 +0000 (16:17 +0000)
common/scripts/application-lifecycle.sh

index ee3d790..b9b3328 100755 (executable)
@@ -123,7 +123,7 @@ inspect_wgt() {
                fi
                # the file naming convention is servicename.wgt
                # but some didnt respect it
-               export WGTSERVICENAME=$(grep '<name>' config.xml | cut -d'>' -f2 | cut -d'<' -f1)
+               export WGTSERVICENAME=$(grep 'id=.*' config.xml | sed 's,^.*id=,id=,' | cut -d= -f2 | cut -d'"' -f2)
                if [ -z "$WGTSERVICENAME" ];then
                        echo "WARN: failed to find name in config.xml, fallback to filename"
                        export WGTSERVICENAME="$WGTNAME"