Skip to content

Commit

Permalink
luau: add ckan, ckanapi, jq, jql & psql to allowed shell …
Browse files Browse the repository at this point in the history
…cmds
  • Loading branch information
jqnatividad committed Jan 29, 2024
1 parent 4e6c39c commit 8fea76f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/cmd/luau.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1955,16 +1955,21 @@ fn setup_helpers(
enum ShellCmd {
Awk,
Cat,
Ckan,
Ckanapi,
Cp,
Cut,
Df,
Echo,
Grep,
Head,
Jq,
Jql,
Ls,
Mkdir,
Mv,
Nl,
Psql,
Pwd,
Rg,
Sed,
Expand All @@ -1983,8 +1988,8 @@ fn setup_helpers(
return helper_err!(
"qsv_shellcmd",
"Invalid shell command: \"{shellcmd}\". Only the following commands are allowed: \
awk, cat, cp, cut, df, echo, rg, grep, head, ls, mkdir, mv, nl, pwd, sed, sort, \
tail, touch, tr, uname, uniq, wc, whoami"
awk, cat, ckan, ckanapi, cp, cut, df, echo, rg, grep, head, jq, jql, ls, mkdir, \
mv, nl, psql, pwd, sed, sort, tail, touch, tr, uname, uniq, wc, whoami"
);
};

Expand Down

0 comments on commit 8fea76f

Please sign in to comment.