refactor: several improvements (#132)
- js export expression - check args regarding run-agent/run-tool
This commit is contained in:
@@ -21,6 +21,9 @@ parse_argv() {
|
||||
if [[ "$tool_name" == *.sh ]]; then
|
||||
tool_name="${tool_name:0:$((${#tool_name}-3))}"
|
||||
fi
|
||||
if [[ -z "$tool_data" ]] || [[ -z "$tool_name" ]]; then
|
||||
die "usage: ./run-tool.sh <tool-name> <tool-data>"
|
||||
fi
|
||||
}
|
||||
|
||||
setup_env() {
|
||||
|
||||
Reference in New Issue
Block a user