mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 09:38:16 -07:00
Add 'eval' to list of banned commands.
This commit is contained in:
parent
e91e453580
commit
8794210b8e
@ -53,7 +53,7 @@ plugin_test_command() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$plugin_command" ]; then
|
if [ -n "$plugin_command" ]; then
|
||||||
(PATH="$ASDF_DIR/bin:$ASDF_DIR/shims:$PATH" eval "$plugin_command")
|
(PATH="$ASDF_DIR/bin:$ASDF_DIR/shims:$PATH" "$plugin_command")
|
||||||
local exit_code
|
local exit_code
|
||||||
exit_code=$?
|
exit_code=$?
|
||||||
if [ $exit_code != 0 ]; then
|
if [ $exit_code != 0 ]; then
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
load test_helpers
|
load test_helpers
|
||||||
|
|
||||||
banned_commands=(realpath)
|
banned_commands=(realpath eval)
|
||||||
|
|
||||||
setup() {
|
setup() {
|
||||||
setup_asdf_dir
|
setup_asdf_dir
|
||||||
|
Loading…
Reference in New Issue
Block a user