Files
invidious/revert.sh
T
2025-06-27 13:54:34 +02:00

27 lines
402 B
Bash
Executable File

#!/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