From 9c65143b897814ab8b1574a0f07dfda1392d9f7f Mon Sep 17 00:00:00 2001 From: su_v Date: Fri, 5 Sep 2014 15:46:15 +0200 Subject: launcher script: exit if change of working directory fails (bzr r13506.1.62) --- packaging/macosx/Resources/bin/inkscape | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packaging') diff --git a/packaging/macosx/Resources/bin/inkscape b/packaging/macosx/Resources/bin/inkscape index 73fb8a924..acc3a5ec7 100755 --- a/packaging/macosx/Resources/bin/inkscape +++ b/packaging/macosx/Resources/bin/inkscape @@ -25,7 +25,7 @@ BASE="$(echo "$CWD" | sed -e 's/\/Contents\/Resources.*$//')" # fail (for python-based extensions, inkscape changes the working directory to the # script's directory, and inkscape launched by python script thus can't find resources # like the now essential 'units.xml' in INKSCAPE_UIDIR relative to the working directory). -cd "$BASE" +cd "$BASE" || exit 1 # don't prepend to $PATH in recursive calls: if [ -z "$INK_PATH_ORIG" ]; then -- cgit v1.2.3