temp/u-boot-pinephone: fix y/n prompt (MR 2155)
Use POSIX syntax, write the question like a typical y/n prompt.
This commit is contained in:
parent
bca96b107c
commit
3b2e6a6cec
2 changed files with 6 additions and 6 deletions
|
@ -52,5 +52,5 @@ package() {
|
|||
sha512sums="
|
||||
73b132cdc26113a83d060f0d243320ca989b4efa98fe95a2205526a42f615ced7046bb9d4878c67a9a550b04c2519d90be3c2272be97c878d759bf5d027cf536 u-boot-7492749fec31b1086bc8933bf113a766aea021aa.tar.gz
|
||||
3cba8a0e899be8cb0b9260b7a86d4115f74c279a1bac8c1403ee669adf91dca8215d8d2d6395ebb3cd67ce000f37a51d6e033b62a8d616b346a9072fa58a4b70 0001-expose-DRAM-clock-speed.patch
|
||||
2b00f3ac20d435f88677064dfbe83a893da98565b0a1a0b7c429ba61d53a088846ea7f36cffc63d615be09560d19ed490665add87533875746186ab1742d3068 update-u-boot
|
||||
4857d5f6e4f591f97b8842cc9fb7d1131d71af63d05f6bd8457f4323886fb2334614a00699a3efc8d1b32d149d130c3cca0205150eedb40e9da60e4508281e36 update-u-boot
|
||||
"
|
||||
|
|
|
@ -161,12 +161,12 @@ if [ -z "$dryrun" ]; then
|
|||
echo "then boot on it and update u-boot running this command:"
|
||||
echo "update-u-boot -d /dev/mmcblk2"
|
||||
echo
|
||||
read -p "Continue? [y/Y] " -n 1 -r
|
||||
read -p "Continue? (y/n) [n]: " -n 1 -r
|
||||
echo
|
||||
if [[ ! $REPLY =~ ^[Yy]$ ]]
|
||||
then
|
||||
exit 0
|
||||
fi
|
||||
case "$REPLY" in
|
||||
y|Y) ;;
|
||||
*) exit 1 ;;
|
||||
esac
|
||||
fi
|
||||
if [ -z "$skip_delay" ]; then
|
||||
echo "Updating $board u-boot in $device in 3 seconds..."
|
||||
|
|
Loading…
Reference in a new issue