Skip to content

Commit

Permalink
limit lunch [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
Apon77 committed May 16, 2022
1 parent 6b6453b commit 3243ba6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ if [[ $cd_check -gt 0 ]]; then echo Please dont use cd inside script, use local
or_check=$(grep "||" $CIRRUS_WORKING_DIR/build_rom.sh | wc -l)
if [[ $or_check -gt 0 ]]; then echo Please dont use or operator inside script; exit 1; fi

lunch_check=$(grep "unch" $CIRRUS_WORKING_DIR/build_rom.sh | grep -v 'rclone' | wc -l)
if [[ $lunch_check -gt 1 ]]; then echo Please build for one device at a time.; exit 1; fi

rom_name=$(grep init $CIRRUS_WORKING_DIR/build_rom.sh -m 1 | cut -d / -f 4)
branch_name=$(grep init $CIRRUS_WORKING_DIR/build_rom.sh | awk -F "-b " '{print $2}' | awk '{print $1}')
rom_name=$rom_name-$branch_name
Expand Down

0 comments on commit 3243ba6

Please sign in to comment.