hard exit 1 if a "cd" failed :(
authorRudolf Polzer <divverent@alientrap.org>
Sun, 18 Jul 2010 15:18:15 +0000 (17:18 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Sun, 18 Jul 2010 15:18:15 +0000 (17:18 +0200)
all

diff --git a/all b/all
index 933a51b6e78259583b56f9e06e2ca6ef1000d6e4..5f70b4a25a3147987a8918d73a9d56896c9cfaa5 100755 (executable)
--- a/all
+++ b/all
@@ -104,7 +104,7 @@ yesno()
 
 enter()
 {
-       $2 cd "$1"
+       $2 cd "$1" || exit 1
        check_mergeconflict "$1"
 }