[game-data-packager] 74/293: put the check-if-dir-exists-mkdir-and-cd thing on one line

Simon McVittie smcv at debian.org
Fri Oct 14 00:11:58 UTC 2016


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

smcv pushed a commit to branch quake
in repository game-data-packager.

commit 4133c79a5ef15388e721ba9036fa89a2285f891a
Author: Jack Coulter <jscinoz at gmail.com>
Date:   Sun Jun 29 11:14:38 2008 +0000

    put the check-if-dir-exists-mkdir-and-cd thing on one line
---
 debian/scripts/quake3        | 3 +--
 debian/scripts/quake3-server | 3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/debian/scripts/quake3 b/debian/scripts/quake3
index 660e550..a941e79 100644
--- a/debian/scripts/quake3
+++ b/debian/scripts/quake3
@@ -34,8 +34,7 @@ while [ "$1" != "" ]; do {
 
 # baseq3 creates botlib.log in cwd rather than ~/.q3a/baseq3
 # this is a dirty hack to work around this issue
-[ -d $HOME/.q3a/baseq3 ] || mkdir -p $HOME/.q3a/baseq3
-cd $HOME/.q3a/baseq3
+[ -d $HOME/.q3a/baseq3 ] || mkdir -p $HOME/.q3a/baseq3; cd $HOME/.q3a/baseq3
 
 # Ready to rumble!
 
diff --git a/debian/scripts/quake3-server b/debian/scripts/quake3-server
index 87444ca..a7bbf96 100644
--- a/debian/scripts/quake3-server
+++ b/debian/scripts/quake3-server
@@ -34,8 +34,7 @@ while [ "$1" != "" ]; do {
 
 # baseq3 creates botlib.log in cwd rather than ~/.q3a/baseq3
 # this is a dirty hack to work around this issue
-[ -d $HOME/.q3a/baseq3 ] || mkdir -p $HOME/.q3a/baseq3
-cd $HOME/.q3a/baseq3
+[ -d $HOME/.q3a/baseq3 ] || mkdir -p $HOME/.q3a/baseq3; cd $HOME/.q3a/baseq3
 
 # Ready to rumble!
 

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



More information about the Pkg-games-commits mailing list