]> xenbits.xensource.com Git - osstest/rumprun.git/commitdiff
Throw nice error if user tries to install non-existent build
authorAntti Kantee <pooka@iki.fi>
Mon, 2 Nov 2015 13:26:41 +0000 (13:26 +0000)
committerAntti Kantee <pooka@iki.fi>
Mon, 2 Nov 2015 13:26:41 +0000 (13:26 +0000)
build-rr.sh

index f31a11b91f9642309c33aa46bd86fe61909d6cd1..2c9b6a225b86d19a1b7d3636cb32370b9ce1be17 100755 (executable)
@@ -419,6 +419,10 @@ dobuild ()
 doinstall ()
 {
 
+       # sanity check
+       [ -d "${STAGING}" ] \
+           || die 'No objdir. No build or build with different params?'
+
        # default used to be a symlink, so this is for "compat".
        # remove in a few months.
        rm -f ${RRDEST} > /dev/null 2>&1 || true