mirror of
https://github.com/opentx/opentx.git
synced 2025-07-13 11:29:51 +03:00
18 lines
299 B
Bash
Executable file
18 lines
299 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# stops on first error
|
|
set -e
|
|
set -x
|
|
|
|
# make sure we are in the good directory
|
|
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
|
cd $DIR
|
|
source ./version.sh
|
|
|
|
# pull the latest changes
|
|
cd opentx
|
|
git fetch
|
|
git checkout $branch
|
|
git reset --hard origin/$branch
|
|
chmod -Rf g+w . || true
|
|
|