From 542160d8174ffe9da63f7c0e41e622fbcbe16884 Mon Sep 17 00:00:00 2001 From: Thore-Krug <36414231+Thore-Krug@users.noreply.github.com> Date: Sun, 10 Mar 2019 21:00:06 +0100 Subject: [PATCH] Added a new if --- Flash.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Flash.sh b/Flash.sh index fcb7357..f940a39 100644 --- a/Flash.sh +++ b/Flash.sh @@ -68,12 +68,12 @@ sudo udevadm control --reload-rules echo -e "\n Installing CHIP-tools" if [ -d CHIP-tools ]; then - pushd CHIP-tools - git pull - popd + cd CHIP-tools + git pull + FEL='sudo sunxi-fel' FASTBOOT='sudo fastboot' SNIB=false ./chip-update-firmware.sh -$flavour + elif [ !-d CHIP-tools ]; then + git clone https://github.com/Project-chip-crumbs/CHIP-tools.git + cd CHIP-tools + FEL='sudo sunxi-fel' FASTBOOT='sudo fastboot' SNIB=false ./chip-update-firmware.sh -$flavour fi -git clone https://github.com/Project-chip-crumbs/CHIP-tools.git -cd CHIP-tools - -FEL='sudo sunxi-fel' FASTBOOT='sudo fastboot' SNIB=false ./chip-update-firmware.sh -$flavour