Browse Source

Fix for loop for bash 4.4 support

pull/1322/head
Johann Frei 4 years ago
parent
commit
46f587fb18
1 changed files with 1 additions and 1 deletions
  1. 2
      offline_01_download.sh

2
offline_01_download.sh

@ -50,7 +50,7 @@ mkdir -p "${static_dir}offline/"
app_dir="app/server/templates"
frontend_dir="frontend"
for ((i = 0; i < "$(expr ${#links[@]} / $n_columns)"; ++i)); do
for ((i = 0; i < $(expr "${#links[@]}" / "$n_columns"); ++i)); do
idx_local=$(expr $i \* $n_columns + 0)
idx_link=$(expr $i \* $n_columns + 1)
local="${links[$idx_local]}"

Loading…
Cancel
Save