Skip to content

Commit 1f8efd9

Browse files
author
Armando Migliaccio
committed
fix syntax error in the if test
switch to using -f rather than -a. This has been overlooked in a review recently merged. Without this fix, devstack on XenServer is broken. Change-Id: I1882cc70528772287241848adea3a520738d4144
1 parent e959dbc commit 1f8efd9

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)