Skip to content

Commit 3d51940

Browse files
authored
Don't use bash specific "=~" in TWRP sh env
1 parent 5f549e4 commit 3d51940

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

boot-switcher/META-INF/com/google/android/update-binary

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ abort() { ui_print "E$1: $2"; cleanup; exit $1; }
2626
# >>> Custom functions >>>
2727

2828
# Verify device boardname validity (e.g. not unset, no spaces / uppercase chars)
29-
invalid_device() { [[ -z "$CURRENT_DEVICE" || "$CURRENT_DEVICE" = *" "* || "$CURRENT_DEVICE" =~ [A-Z] ]]; }
29+
invalid_device() { [[ -z "$CURRENT_DEVICE" || "$CURRENT_DEVICE" = *" "* || `echo "$CURRENT_DEVICE" | grep -q [A-Z]` ]]; }
3030

3131
# <<< Custom functions <<<
3232

0 commit comments

Comments
 (0)