Change in vdsm[master]: Use shell parameter expansion instead of if

mtayer at redhat.com mtayer at redhat.com
Wed Mar 19 15:52:27 UTC 2014


mooli tayer has uploaded a new change for review.

Change subject: Use shell parameter expansion instead of if
......................................................................

Use shell parameter expansion instead of if

Change-Id: I2cd8fd16a5407ae12942718d0d9cf3c2d999e778
Signed-off-by: Mooli Tayer <mtayer at redhat.com>
---
M lib/vdsm/tool/libvirt_configure.sh.in
1 file changed, 1 insertion(+), 5 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/05/25905/1

diff --git a/lib/vdsm/tool/libvirt_configure.sh.in b/lib/vdsm/tool/libvirt_configure.sh.in
index 1636c8e..27359c4 100755
--- a/lib/vdsm/tool/libvirt_configure.sh.in
+++ b/lib/vdsm/tool/libvirt_configure.sh.in
@@ -18,11 +18,7 @@
 # Refer to the README and COPYING files for full details of the license
 #
 
-if [ -z "${OVIRT_FUNC_PATH}" ]; then
-    . @LIBEXECDIR@/ovirt_functions.sh
-else
-    . "${OVIRT_FUNC_PATH}"
-fi
+. "${OVIRT_FUNC_PATH:- at LIBEXECDIR@/ovirt_functions.sh}"
 
 ENABLE_LIBVIRT_SANLOCK="@ENABLE_LIBVIRT_SANLOCK@"
 ENABLE_LIBVIRT_SELINUX="@ENABLE_LIBVIRT_SELINUX@"


-- 
To view, visit http://gerrit.ovirt.org/25905
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2cd8fd16a5407ae12942718d0d9cf3c2d999e778
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: mooli tayer <mtayer at redhat.com>


More information about the vdsm-patches mailing list