From 0ecbd888c9491176ae41bbfa2b74a05234882000 Mon Sep 17 00:00:00 2001 From: Paride Legovini Date: Thu, 30 Jan 2020 19:34:12 +0100 Subject: run-container: use 'test -n' instead of 'test ! -z' (#202) Fixes shellcheck warning SC2236. --- tools/run-container | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/run-container') diff --git a/tools/run-container b/tools/run-container index 95b2982a..23243474 100755 --- a/tools/run-container +++ b/tools/run-container @@ -347,7 +347,7 @@ wait_for_boot() { run_self_inside "$name" wait_inside "$name" "$wtime" "$VERBOSITY" || { errorrc "wait inside $name failed."; return; } - if [ ! -z "${http_proxy-}" ]; then + if [ -n "${http_proxy-}" ]; then if [ "$OS_NAME" = "centos" ]; then debug 1 "configuring proxy ${http_proxy}" inside "$name" sh -c "echo proxy=$http_proxy >> /etc/yum.conf" -- cgit v1.2.3