Skip to content

Commit 8d618ca

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "fix syntax error in the if test"
2 parents c4cd414 + 1f8efd9 commit 8d618ca

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

tools/xen/scripts/install-os-vpx.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,7 @@
1919

2020
set -eux
2121

22-
if [ -a /etc/xensource-inventory]
23-
then
24-
. /etc/xensource-inventory
25-
else
26-
. /etc/xcp/inventory
27-
fi
22+
[[ -f "/etc/xensource-inventory" ]] && source "/etc/xensource-inventory" || source "/etc/xcp/inventory"
2823

2924
NAME="XenServer OpenStack VPX"
3025
DATA_VDI_SIZE="500MiB"

0 commit comments

Comments
 (0)