Skip to content
Permalink
Browse files

fix retrieval of installed package versions

  • Loading branch information...
hobbyquaker committed Oct 5, 2019
1 parent f568fcc commit f5df146e4e00276bdee63bdb8207c6d58377a240
Showing with 1 addition and 0 deletions.
  1. +1 −0 addon_files/redmatic/www/pkg.cgi
@@ -14,6 +14,7 @@ if {[info exists sid] && [check_session $sid]} {
"ls" {
puts -nonewline "Content-Type: text/plain; charset=utf-8\r\n\r\n"
foreach pkgjson [glob /usr/local/addons/redmatic/lib/node_modules/*/package.json] {
set ::env(LD_LIBRARY_PATH) "/usr/local/addons/redmatic/lib"
puts "[lrange [file split $pkgjson] end-1 end-1] [exec /usr/local/addons/redmatic/bin/jq -r ".version" $pkgjson]"
}
}

0 comments on commit f5df146

Please sign in to comment.
You can’t perform that action at this time.