Skip to content

Commit

Permalink
fix retrieval of installed package versions
Browse files Browse the repository at this point in the history
  • Loading branch information
hobbyquaker committed Oct 5, 2019
1 parent f568fcc commit f5df146
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions addon_files/redmatic/www/pkg.cgi
Expand Up @@ -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]"
}
}
Expand Down

0 comments on commit f5df146

Please sign in to comment.