File tree 2 files changed +3
-5
lines changed
2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 3
3
declare -A DEBIAN
4
4
5
5
DEBIAN[" Package" ]=" apt-proxy-detect"
6
+ # shellcheck disable=SC2154
6
7
DEBIAN[" Version" ]=" ${branch_version} -${branch_name} -${branch_tag} "
7
8
DEBIAN[" Section" ]=" base"
8
9
DEBIAN[" Priority" ]=" optional"
Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ function check_proxy() {
158
158
fi
159
159
return 0
160
160
fi
161
- elif [ ! -z " ${check_proxy_cache[$1.$2]} " ]
161
+ elif [ -n " ${check_proxy_cache[$1.$2]} " ]
162
162
then
163
163
return ${check_proxy_cache[$1.$2]}
164
164
else
@@ -347,10 +347,7 @@ then
347
347
CACHED_PROXIES[${testurl_hash} ]=" ${ret} "
348
348
CACHED_PROXIES_AGE[${testurl_hash} ]=" ${now} "
349
349
debug " CACHE" " Update cachefile."
350
- declare -p CACHED_PROXIES > " ${cache_file} "
351
- declare -p CACHED_PROXIES_AGE >> " ${cache_file} "
352
- declare -p WORKING_PROXIES >> " ${cache_file} "
353
- declare -p AVAHI_PROXIES >> " ${cache_file} "
350
+ { declare -p CACHED_PROXIES ; declare -p CACHED_PROXIES_AGE ; declare -p WORKING_PROXIES ; declare -p AVAHI_PROXIES ; } > " ${cache_file} "
354
351
fi
355
352
356
353
exit 0
You can’t perform that action at this time.
0 commit comments