summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParide Legovini <paride.legovini@canonical.com>2020-01-30 19:34:12 +0100
committerGitHub <noreply@github.com>2020-01-30 13:34:12 -0500
commit0ecbd888c9491176ae41bbfa2b74a05234882000 (patch)
treec5a0d18f12476b2d86a356fd94cdcaf1a6863671
parent2bedc44092ec94faebfb2f55c6d7c6bdd754df23 (diff)
downloadvyos-cloud-init-0ecbd888c9491176ae41bbfa2b74a05234882000.tar.gz
vyos-cloud-init-0ecbd888c9491176ae41bbfa2b74a05234882000.zip
run-container: use 'test -n' instead of 'test ! -z' (#202)
Fixes shellcheck warning SC2236.
-rwxr-xr-xtools/run-container2
1 files changed, 1 insertions, 1 deletions
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"