Skip to content

Commit

Permalink
Don't use bash specific "=~" in TWRP sh env
Browse files Browse the repository at this point in the history
  • Loading branch information
JamiKettunen authored Nov 14, 2019
1 parent 5f549e4 commit 3d51940
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion boot-switcher/META-INF/com/google/android/update-binary
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ abort() { ui_print "E$1: $2"; cleanup; exit $1; }
# >>> Custom functions >>>

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

# <<< Custom functions <<<

Expand Down

0 comments on commit 3d51940

Please sign in to comment.