remove debuging information of do_afm_util
[src/qa-testdefinitions.git] / common / scripts / application-lifecycle.sh
index 64afdb6..13fed05 100755 (executable)
@@ -71,9 +71,11 @@ do
                        echo "DEBUG: not hidden package"
                fi
                # a service sets urn:AGL:widget:provided-api
-               if $(grep "urn:AGL:widget:provided-api" config.xml) ; then
+               grep "urn:AGL:widget:provided-api" config.xml
+               if [ $? -eq 0 ] ; then
                    # we are a service, now determine the scope ...
-                   if $(grep "urn:AGL:permission::partner:scope-platform" config.xml) ; then
+                   grep "urn:AGL:permission::partner:scope-platform" config.xml
+                   if [ $? -eq 0 ];then
                        SERVICE_PLATFORM=1
                    else
                        SERVICE_USER=1