Fix Install Script
authorBaptiste DURAND <baptiste.durand@eurogiciel.fr>
Tue, 16 Apr 2013 17:50:39 +0000 (19:50 +0200)
committerBaptiste DURAND <baptiste.durand@eurogiciel.fr>
Tue, 16 Apr 2013 17:50:39 +0000 (19:50 +0200)
install_widgets.sh

index 995265c..24c5d29 100644 (file)
@@ -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