[redeclipse] 232/494: wrapper scripts: capture cd error

Martin Werner arand-guest at moszumanska.debian.org
Sun Jun 21 20:52:37 UTC 2015


This is an automated email from the git hooks/post-receive script.

arand-guest pushed a commit to branch debdir
in repository redeclipse.

commit 8cc3751e4fd7c7b2fbfeaad441d044c546dc73cf
Author: Arand Nash <ienorand at gmail.com>
Date:   Tue Oct 25 20:06:18 2011 +0200

    wrapper scripts: capture cd error
---
 scripts/redeclipse        | 3 +--
 scripts/redeclipse-server | 3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/scripts/redeclipse b/scripts/redeclipse
index b8d7e1e..ba14743 100644
--- a/scripts/redeclipse
+++ b/scripts/redeclipse
@@ -8,6 +8,5 @@ do
 done
 
 RE_OPTIONS="-r"
-cd /usr/lib/games/redeclipse
+cd /usr/lib/games/redeclipse || exit 1
 exec ./reclient ${RE_OPTIONS} ${1+"$@"}
-# ${1+"$@"} is a portability hack, keyword "wrapper script"
diff --git a/scripts/redeclipse-server b/scripts/redeclipse-server
index 80a6145..db59152 100644
--- a/scripts/redeclipse-server
+++ b/scripts/redeclipse-server
@@ -8,6 +8,5 @@ do
 done
 
 RE_OPTIONS=""
-cd /usr/lib/games/redeclipse
+cd /usr/lib/games/redeclipse || exit 1
 exec ./reserver ${RE_OPTIONS} ${1+"$@"}
-# ${1+"$@"} is a portability hack, keyword "wrapper script"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/redeclipse.git



More information about the Pkg-games-commits mailing list