projects
/
profile
/
common
/
wrt-widgets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2973a25
)
Fix Install Script
author
Baptiste DURAND
<baptiste.durand@eurogiciel.fr>
Tue, 16 Apr 2013 17:50:39 +0000
(19:50 +0200)
committer
Baptiste DURAND
<baptiste.durand@eurogiciel.fr>
Tue, 16 Apr 2013 17:50:39 +0000
(19:50 +0200)
install_widgets.sh
patch
|
blob
|
history
diff --git
a/install_widgets.sh
b/install_widgets.sh
index
995265c
..
24c5d29
100644
(file)
--- 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