Skip to content

Commit a82817e

Browse files
committed
bot: Fully switch to breakfast instead of lunch
Change-Id: I3d40e3d2cfddf264e4c7e001679f1548d689a40b
1 parent 6fad1e0 commit a82817e

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Before using this script, ensure you have the following dependencies installed:
3434

3535
3. **Fill in the required variables** in `config.env`:
3636

37-
- `CONFIG_LUNCH`: The lunch command for your device (e.g., `lineage_lancelot-user`). If left empty, the script will prompt for the device codename.
37+
- `CONFIG_DEVICE`: The device codename (e.g., `lancelot`). If left empty, the script will prompt for it.
3838
- `CONFIG_TARGET`: The build target (e.g., `bacon`).
3939
- `CONFIG_OFFICIAL_FLAG`: The flag to export for an official build.
4040
- `CONFIG_CHATID`: Your Telegram channel/group chat ID.
@@ -68,4 +68,4 @@ bash ci_bot.sh -s -c
6868

6969
## Contributing
7070

71-
Contributions are welcome! If you have any suggestions or improvements, feel free to open an issue or submit a pull request.
71+
Contributions are welcome! If you have any suggestions or improvements, feel free to open an issue or submit a pull request.

ci_bot.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ else
1010
fi
1111

1212
# Handle device codename
13-
if [[ -z "$CONFIG_LUNCH" ]]; then
13+
if [[ -z "$CONFIG_DEVICE" ]]; then
1414
read -p "Enter the device codename: " DEVICE
1515
if [[ -z "$DEVICE" ]]; then
1616
echo "ERROR: Device codename not provided." >&2
1717
exit 1
1818
fi
1919
else
20-
DEVICE="$(sed -e "s/^.*_//" -e "s/-.*//" <<<"$CONFIG_LUNCH")"
20+
DEVICE="$CONFIG_DEVICE"
2121
fi
2222

2323
# Script Constants. Required variables throughout the script.

config.env.example

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build Configuration
2-
CONFIG_LUNCH=""
2+
CONFIG_DEVICE=""
33
CONFIG_TARGET="bacon"
44
CONFIG_OFFICIAL_FLAG=""
55

@@ -12,4 +12,4 @@ CONFIG_ERROR_CHATID="" # Optional: If not set, errors are sent to CONFIG_CHATID
1212
CONFIG_PDUP_API=""
1313

1414
# Power off after build
15-
POWEROFF="false"
15+
POWEROFF="false"

0 commit comments

Comments
 (0)