From 78e345b68fea725b6375882007178239ecb038f9 Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Sat, 13 Dec 2014 00:40:50 +0000 Subject: lenovobios_firstflash: Fix errors lenovobios_secondflash: Fix errors --- lenovobios_secondflash | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) (limited to 'lenovobios_secondflash') diff --git a/lenovobios_secondflash b/lenovobios_secondflash index 25d70f5f..f1a9fb3d 100755 --- a/lenovobios_secondflash +++ b/lenovobios_secondflash @@ -82,30 +82,25 @@ if [ ! -f "DEBLOB" ] if [ $(uname -i) = "i686" ] || [ $(uname -m) = "i686" ] then # i686 - # needed for first flashing, otherwise machine will be bricked - { # try - ./bucts/i686/bucts 0 - } || { # catch + if [ ! -f "bucts/i686/bucts" ]; then echo "$errOut" exit 1 - } + fi + ./bucts/i686/bucts 0 else # x86_64 - # needed for first flashing, otherwise machine will be bricked - { # try - ./bucts/x86_64/bucts 0 - } || { # catch + if [ ! -f "bucts/x86_64/bucts" ]; then echo "$errOut" exit 1 - } + fi + ./bucts/x86_64/bucts 0 + fi else # this means we are working in src - # needed for first flashing, otherwise machine will be bricked - { # try - ./bucts/bucts 0 - } || { # catch + if [ ! -f "bucts/bucts" ]; then echo "$errOut" exit 1 - } + fi + ./bucts/bucts 0 fi -- cgit v1.2.3-70-g09d2