Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions scripts/remote.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@
set -e
TEMP=$(mktemp -d)
trap "rm -rf $TEMP" EXIT
cd "$TEMP"

# Downloading
curl -sL https://github.com/datalek/boil/releases/latest/download/boil-node-22.tgz -o archive.tgz

# Download and extract in temp (without changing working directory)
curl -sL https://github.com/datalek/boil/releases/latest/download/boil-node-22.tgz -o "$TEMP/archive.tgz"
# Extracting
tar -xzf archive.tgz
tar -xzf "$TEMP/archive.tgz" -C "$TEMP"

# Redirect stdin to tty for interactive input
npx node dist/boil.cjs "$@" < /dev/tty
npx node "$TEMP/dist/boil.cjs" "$@" < /dev/tty