Added a new if
This commit is contained in:
14
Flash.sh
14
Flash.sh
@@ -68,12 +68,12 @@ sudo udevadm control --reload-rules
|
|||||||
|
|
||||||
echo -e "\n Installing CHIP-tools"
|
echo -e "\n Installing CHIP-tools"
|
||||||
if [ -d CHIP-tools ]; then
|
if [ -d CHIP-tools ]; then
|
||||||
pushd CHIP-tools
|
cd CHIP-tools
|
||||||
git pull
|
git pull
|
||||||
popd
|
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
|
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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user