microcule icon indicating copy to clipboard operation
microcule copied to clipboard

Implement associative arrays for bash services

Open Marak opened this issue 8 years ago • 1 comments

Right now, bash services are still injecting all request and env parameters into separate unique bash variables ( like how Lua use to work prior to #18 )

It would be better if we used bash 4 feature of associative arrays for creating two objects, Hook.params and Hook.env, which are populated with many items ( instead of creating many unique variable names )

Marak avatar Jan 17 '17 23:01 Marak

I added the code, but it turns out bash 4 isn't readily installed on many systems.

I'll see if I can get this checked in with dual support for bash 3 and 4.

Marak avatar Feb 10 '17 01:02 Marak