]> xenbits.xensource.com Git - raisin.git/commitdiff
Print helpful message when user tries to install but no build is present
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Tue, 7 Apr 2015 15:46:24 +0000 (15:46 +0000)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Tue, 7 Apr 2015 17:00:43 +0000 (17:00 +0000)
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
CODING_STYLE
raise.sh

index 8e192f8b45f8e618d0d9a13df4e60f7efabec188..ff843a7213d34cc3b027a196065c131391f50a37 100644 (file)
@@ -37,7 +37,7 @@ Prepend _ to the function name if it is a local function.
 Tests
 -----
 
-Use [[ for tests. Do not use test or [.
+[[ is preferred for tests.
 
 
 Subshell
index b78364524c7443f4ee28c0a934beee83a207937b..987490aeabe2a77f15fd57934096a303d8cde0df 100755 (executable)
--- a/raise.sh
+++ b/raise.sh
@@ -50,6 +50,12 @@ _build() {
 }
 
 _install() {
+    # need single braces for filename matching expansion
+    if [ ! -f xen-sytem*rpm ] && [ ! -f xen-system*deb ]
+    then
+        echo You need to raise.sh build first.
+        exit 1
+    fi
     install_package xen-system
 }