fix script
This commit is contained in:
parent
15c70dd3b5
commit
6f019ea686
1 changed files with 3 additions and 1 deletions
4
build.sh
4
build.sh
|
|
@ -18,10 +18,12 @@ if [ -z "$all_files" ]; then
|
|||
read -p "No firmware files found in the FW folder. Do you want to download the firmware? (y/n) " -n 1 -r
|
||||
if [[ $REPLY =~ ^[Yy]$ ]]; then
|
||||
echo
|
||||
read -p "Enter version: " par_version
|
||||
read -p "Enter model: " par_model
|
||||
echo "Downloading firmware..."
|
||||
# Run fwdl.sh with the model and version as parameters
|
||||
$project_root/fwdl.sh $par_model $par_version
|
||||
|
||||
all_files=$(ls $FW_DIR | grep -E ".zip|.bin|.swu")
|
||||
else
|
||||
echo
|
||||
echo "Please download the firmware and place it in the FW folder"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue