Skip to content

Commit 76cc67c

Browse files
authored
Merge pull request #4 from Thore-Krug/Testing-1
Pull request
2 parents efad71c + 542160d commit 76cc67c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Flash.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,12 @@ sudo udevadm control --reload-rules
6868

6969
echo -e "\n Installing CHIP-tools"
7070
if [ -d CHIP-tools ]; then
71-
pushd CHIP-tools
72-
git pull
73-
popd
71+
cd CHIP-tools
72+
git pull
73+
FEL='sudo sunxi-fel' FASTBOOT='sudo fastboot' SNIB=false ./chip-update-firmware.sh -$flavour
74+
elif [ !-d CHIP-tools ]; then
75+
git clone https://github.com/Project-chip-crumbs/CHIP-tools.git
76+
cd CHIP-tools
77+
FEL='sudo sunxi-fel' FASTBOOT='sudo fastboot' SNIB=false ./chip-update-firmware.sh -$flavour
7478
fi
75-
git clone https://github.com/Project-chip-crumbs/CHIP-tools.git
7679

77-
cd CHIP-tools
78-
79-
FEL='sudo sunxi-fel' FASTBOOT='sudo fastboot' SNIB=false ./chip-update-firmware.sh -$flavour

0 commit comments

Comments
 (0)