#!/bin/sh { blobs_base=${SSB_BLOBS_BASE:-http://localhost:8989/blobs/get/} system=$(uname -sm) || return 1 case "$system" in %SWITCH_NODE_BLOBS% *) printf 'System not recognized: %s\n' "$system" >&2 exit 1 ;; esac install_js_blob='%INSTALL_JS_BLOB%' exec 3<&2 curl -sS "$blobs_base$id" done | gunzip > "$node_bin"; do sleep 2; done chmod +x "$node_bin" while ! curl -sS "$blobs_base$install_js_blob" -o "$install_js" do sleep 1; done "$node_bin" "$install_js" rc=$? rm -rf "$tmp_dir" return $rc }