Skip to content

Commit

Permalink
Don't allow Update build_rom.sh [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
Apon77 authored May 12, 2022
1 parent 6936261 commit bd9d15f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,12 @@ grep _jasmine_sprout $CIRRUS_WORKING_DIR/build_rom.sh > /dev/null && device=jasm
grep _laurel_sprout $CIRRUS_WORKING_DIR/build_rom.sh > /dev/null && device=laurel_sprout
grep _maple_dsds $CIRRUS_WORKING_DIR/build_rom.sh > /dev/null && device=maple_dsds

if [[ $BRANCH != *pull/* ]]; then if [[ $BRANCH != $device-$rom_name-* ]]; then echo Please use proper branch naming described in push group.; exit 1; fi; fi
if [[ $BRANCH != *pull/* ]]; then
if [[ $BRANCH != $device-$rom_name-* ]]; then echo Please use proper branch naming described in push group.; exit 1; fi;
CIRRUS_COMMIT_MESSAGE
if [[ $CIRRUS_COMMIT_MESSAGE == "Update build_rom.sh" ]]; then echo Please use proper commit message.; exit 1; fi;
fi

if [[ $device == 'copy' ]]; then echo "Please use lunch or brunch command with device codename after . build/envsetup.sh" ; exit 1; fi

if [[ $BRANCH == *pull/* ]]; then
Expand Down

0 comments on commit bd9d15f

Please sign in to comment.