From 123e9b2c7790bb522f75b990ba04afc17dc4c6ac Mon Sep 17 00:00:00 2001 From: Eugenio Romano Date: Sat, 13 Jul 2019 11:48:51 +0100 Subject: [PATCH] fix smart build script --- scripts/smart-build.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/smart-build.sh b/scripts/smart-build.sh index 9abacdc11e..1ed52caf6a 100755 --- a/scripts/smart-build.sh +++ b/scripts/smart-build.sh @@ -44,6 +44,14 @@ affected="$(./scripts/affected-libs.sh ${gnu[@]} -b "$BRANCH_NAME")" echo $affected libs=(`echo $affected | sed 's/^$/\n/g'`) + +if [ $BRANCH_NAME == 'undefined' ]; then + echo "Rebase your branch" + exit 1 +fi + +echo "Builds" + #extensions for i in "${libs[@]}" do