From: Baptiste DURAND Date: Tue, 16 Apr 2013 17:50:39 +0000 (+0200) Subject: Fix Install Script X-Git-Tag: submit/tizen/generic/20140107.085326~25^2~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fa527163dd894a37659f3dc894f5ac91eaa72632;p=profile%2Fcommon%2Fwrt-widgets.git Fix Install Script --- diff --git a/install_widgets.sh b/install_widgets.sh index 995265c..24c5d29 100644 --- a/install_widgets.sh +++ b/install_widgets.sh @@ -1,17 +1,17 @@ #!/bin/sh -PWD_I=`pwd` +PWD_I="/root/widget_demo" echo "Widget Installation" if [ "$(id -u)" != "0" ]; then echo "This script must be run as root" 1>&2 exit 1 fi -FILE=`ls *.wgt` +FILE=`ls ${PWD_I}/*.wgt` if [ -z "$FILE" ]; then echo "$PWD_I doesn't contains any widgets (.wgt)" 1>&2 exit 1 fi for i in $FILE do -wrt-installer -i $PWD_I/$i +wrt-installer -i $i done