From e646a831540ce49fd2d4683db4917d543adcf345 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Sat, 14 Nov 2020 17:36:13 -0800 Subject: [PATCH] simplify a check for an empty message --- bin/kaleidoscope-builder | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/bin/kaleidoscope-builder b/bin/kaleidoscope-builder index 01a8e5d8..e1af08a6 100755 --- a/bin/kaleidoscope-builder +++ b/bin/kaleidoscope-builder @@ -212,13 +212,9 @@ _ensure_sketch_found() { _prompt_before_flashing() { flashing_instructions=$(_arduino_prop 'build.flashing_instructions') - - if [ "x${flashing_instructions}x" = "xx" ]; then - flashing_instructions="If your keyboard needs you to do something to put it in flashing mode, do that now." - fi + : "${flashing_instructions:="If your keyboard needs you to do something to put it in flashing mode, do that now."}" printf '%b\n\n' "${flashing_instructions}" - echo "" echo "When you're ready to proceed, press 'Enter'." # We do not want to permit line continuations here. We just want a newline.