File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ binaries:
2727 - jq
2828 # see install for node https://github.com/nodesource/distributions#installation-scripts
2929 instructions : |
30- {%- if self.version[0] == '1' %} \
30+ {%- if self.version.split('.') [0] | int < 2 %} \
3131 if [ ! -z `which node` ] ; then \
3232 echo "node is installed, skipping its install." ; \
3333 else \
@@ -55,8 +55,8 @@ binaries:
5555 jq -r ".version|=\"{{ self.version }}\"" deno.json > ._deno.json
5656 mv ._deno.json deno.json
5757 deno run -A ./build.ts
58- cp dist/validator/bids-validator.js /usr/bin/
59- echo 'deno -A /usr/bin// bids-validator.js $@ ' > /usr/bin/bids-validator
58+ cp dist/validator/bids-validator.js /usr/bin/bids-validator.js
59+ echo 'deno -A /usr/bin/bids-validator.js "$@" ' > /usr/bin/bids-validator
6060 chmod +x /usr/bin/bids-validator
61- rm -Rf $PWD
61+ cd .. && rm -rf "bids-validator-{{ self.version }}"
6262 {% endif -%}
You can’t perform that action at this time.
0 commit comments