File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed
Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change 1- #! /usr/bin/env bash
2- set -e
1+ # !/usr/bin/env fish
2+ # local fish version at time of writing was 4.0.2
3+
4+ set fish_trace 1
5+
6+ cd (dirname (status --current-filename ))
7+
8+ set -l rm_and_tty_arg ' --rm'
9+ if isatty 0 # stdin
10+ set -a rm_and_tty_arg ' -it'
11+ end
312
413mkdir -p node_modules/.docker
5- docker run --rm -it \
14+ docker run $rm_and_tty_arg \
615 -v " $PWD :/hex-engine" \
716 -v " $PWD /node_modules/.docker:/hex-engine/node_modules" \
817 suchipi/node-nw-env :0.7.0 \
918 bash -c \
10- " Xvfb -screen 0 1024x768x16 -ac & source /usr/local/nvm/nvm.sh && cd /hex-engine && nvm install && nvm use && $* "
19+ " Xvfb -screen 0 1024x768x16 -ac & source /usr/local/nvm/nvm.sh && cd /hex-engine && nvm install && nvm use && $argv "
You can’t perform that action at this time.
0 commit comments