gnucash-on-windows master: Don't kill the running shell if sourced from the wrong directory

Geert Janssens gjanssens at code.gnucash.org
Tue Apr 18 16:40:24 EDT 2017


Updated	 via  https://github.com/Gnucash/gnucash-on-windows/commit/27491ec2 (commit)
	from  https://github.com/Gnucash/gnucash-on-windows/commit/9ba53a20 (commit)



commit 27491ec2c079adcecd1a83ec8151fbc989fef35a
Author: Geert Janssens <geert at kobaltwit.be>
Date:   Tue Apr 18 22:40:16 2017 +0200

    Don't kill the running shell if sourced from the wrong directory
    
    By exiting from a source file, one exits the calling shell
    and hence the invoker never sees the error message

diff --git a/devrc.sh b/devrc.sh
index 3ed718a..1cb5c91 100644
--- a/devrc.sh
+++ b/devrc.sh
@@ -32,7 +32,7 @@ if [ $(expr $_dirname : gnucash-on-windows.*) -ne 0 ]; then
     GLOBAL_UDIR=`dirname $_currdir`
 else
     echo "Source me in gnucash-on-windows so that I can set the right directory."
-    exit
+    return
 fi
 AQBANKING_UDIR=$GLOBAL_UDIR/aqbanking
 CMAKE_UDIR=$GLOBAL_UDIR/cmake



Summary of changes:
 devrc.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



More information about the gnucash-changes mailing list