From 44e452fb3c8cc7a093d72fbc280be3973e627a62 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Fri, 19 Apr 2019 21:26:04 -0400 Subject: Add braces to param exps in arith substs --- (limited to 'src/profile') 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" } -- cgit v0.9.1