Explorar o código

i need to use eval, fix broken update script

Waldemar Brodkorb %!s(int64=15) %!d(string=hai) anos
pai
achega
ecd64118a3
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  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
 }