#!/usr/bin/env bash if [ $# -eq 0 ]; then echo "Usage: build [invidious|companion]" exit 1 fi mode=$1 if [ "$mode" == "invidious" ]; then cd build git checkout . git restore . git reset git clean -fd fi if [ "$mode" == "companion" ]; then cd companion git checkout . git restore . git reset git clean -fd fi