Fix perl one liner bug
decode_json returns hash reference, so scalar variable should be used instead of hash variable.
This commit is contained in:
parent
b3876c5982
commit
d84a6d3b21
|
@ -116,7 +116,7 @@ _yarn_commands_scripts() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -n $packageJson ]]; then
|
if [[ -n $packageJson ]]; then
|
||||||
scripts=($(cat "$packageJson" | perl -0777 -MJSON::PP -n -E '%r=decode_json($_); say for sort keys %{$r->{scripts}}'))
|
scripts=($(cat "$packageJson" | perl -0777 -MJSON::PP -n -E '$r=decode_json($_); say for sort keys %{$r->{scripts}}'))
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_describe 'command or script' _commands -- _global_commands -- scripts -- binaries
|
_describe 'command or script' _commands -- _global_commands -- scripts -- binaries
|
||||||
|
|
Loading…
Reference in New Issue