13 lines
189 B
Bash
Executable File
13 lines
189 B
Bash
Executable File
#!/bin/bash
|
|
BRANCH=${1:-main}
|
|
|
|
cd /path/to/overub || exit
|
|
|
|
git fetch origin
|
|
git checkout "$BRANCH"
|
|
git pull origin "$BRANCH"
|
|
|
|
systemctl restart overub
|
|
|
|
echo "Bot updated to latest $BRANCH"
|