#!/usr/bin/env bash function quiet () { "$@" > /dev/null 2>&1 } function main() { quiet command -v git rc=$? if (( rc != 0 )); then echo "not ok - missing build tools, try installing git" return 1 fi echo "# __ ___ ___ ___ ____ " echo "# /__ / / / /_/ /__ / " echo "# __/ /__/ /__ / \ /__ / " echo "# " echo "# getting files..." quiet git clone --depth=1 --branch=release https://github.com/socketsupply/socket.git socket cd socket || return 1 ./bin/install.sh "$1" "$2" } main "$1" "$2"