summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-02-12 21:32:00 +0100
committerGitHub <noreply@github.com>2024-02-12 21:32:00 +0100
commit69a0fa708654ca51a2d1d2a815a93263c632f619 (patch)
treeae55fb6efb7a68c0f207b72e3fb2170f8227c691 /src
parent19df28989d72f8006e1defd241ec5cc34660bbec (diff)
parenta5ac522f8c675ee2b2c2f4f08be7c41943632e94 (diff)
downloadvyos-1x-69a0fa708654ca51a2d1d2a815a93263c632f619.tar.gz
vyos-1x-69a0fa708654ca51a2d1d2a815a93263c632f619.zip
Merge pull request #2994 from c-po/init-T2044
init: T2044: fix "binary operator expected" when two or more RPKI caches are defined
Diffstat (limited to 'src')
-rwxr-xr-xsrc/init/vyos-router4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/init/vyos-router b/src/init/vyos-router
index 2b4fac5ef..eac3e7e47 100755
--- a/src/init/vyos-router
+++ b/src/init/vyos-router
@@ -1,5 +1,5 @@
#!/bin/bash
-# Copyright (C) 2021 VyOS maintainers and contributors
+# Copyright (C) 2021-2024 VyOS maintainers and contributors
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 or later as
@@ -449,7 +449,7 @@ start ()
run_postconfig_scripts
tmp=$(${vyos_libexec_dir}/read-saved-value.py --path "protocols rpki cache")
- if [ ! -z $tmp ]; then
+ if [[ ! -z "$tmp" ]]; then
vtysh -c "rpki start"
fi
}