File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -116,10 +116,12 @@ function setup_util() (
116
116
local invocation=" $0 $* "
117
117
function help {
118
118
# get content of this file between <installer-options> and </installer-options>
119
- if __command_exists -- sd; then
120
- installer_options=" $( sd --flags=s ' .+# <installer-options>\s+|\s+# </installer-options>.+|\t|local ' ' ' < " ${BASH_SOURCE[0]} " ) "
119
+ local installer_options
120
+ # prevent endless `setup-util` recursion
121
+ if __command_exists -- deno; then
122
+ installer_options=" $( echo-regexp -smgf ' .+# <installer-options>\s+|\s+# </installer-options>.+|\t|local ' ' ' < " ${BASH_SOURCE[0]} " ) "
121
123
else
122
- installer_options=" $( echo-style --notice=' [sd ] is required to display the installer option help , install with [setup-util-sd ]' ) "
124
+ installer_options=" $( echo-style --notice=' [deno ] is required to display the installer options , install with [setup-util-deno ]' ) "
123
125
fi
124
126
125
127
# output the help
You can’t perform that action at this time.
0 commit comments