Browse Source

i need to use eval, fix broken update script

Waldemar Brodkorb 15 years ago
parent
commit
ecd64118a3
1 changed files with 3 additions and 3 deletions
  1. 3 3
      package/base-files/extra/sbin/update

+ 3 - 3
package/base-files/extra/sbin/update

@@ -27,19 +27,19 @@ prepare() {
 
 extract_from_file() {
 	prepare
-        cat $1 | $updatecmd
+        cat $1 | eval $updatecmd
 	check_exit
 }
 
 extract_from_ssh() {
 	prepare
-        ssh $1 "cat $2" | $updatecmd
+        ssh $1 "cat $2" | eval $updatecmd
 	check_exit
 }
 
 extract_from_http() {
 	prepare
-        wget -O - $1 | $updatecmd
+        wget -O - $1 | eval $updatecmd
 	check_exit
 }