diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-04-19 21:26:04 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-04-19 21:26:04 (EDT) |
commit | 44e452fb3c8cc7a093d72fbc280be3973e627a62 (patch) | |
tree | dc169666d13834de17d3c984317e29ec4af1d04f /src/profile/proteanos.sh | |
parent | c752393c58c37dc7e8403b8b87d0943c1fe8c8b9 (diff) |
Add braces to param exps in arith substs
Diffstat (limited to 'src/profile/proteanos.sh')
-rw-r--r-- | src/profile/proteanos.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/profile/proteanos.sh b/src/profile/proteanos.sh index 6991937..fbf0124 100644 --- a/src/profile/proteanos.sh +++ b/src/profile/proteanos.sh @@ -99,7 +99,7 @@ prof_proteanos_select_mirror() 'http://files.proteanos.com/pub/proteanos-mirrors-http')" mirrors_count=$(printf '%s\n' "${mirrors}" | wc -l) rand - mirror_num=$(($rand_x % $mirrors_count + 1)) + mirror_num=$((${rand_x} % ${mirrors_count} + 1)) printf '%s\n' "${mirrors}" | sed -n "${mirror_num}p" } |