diff --git a/build-packages.sh b/build-packages.sh index 0ef23761..03c48e13 100755 --- a/build-packages.sh +++ b/build-packages.sh @@ -202,8 +202,7 @@ while [ ! -z {$1+x} ]; do done if [ -z ${use_branch+set} ]; then - echo "Please specify a branch with -branch=" - exit 1 + use_branch="$(git rev-parse --abbrev-ref HEAD)" fi build_dir=".build-$arch"