[game-data-packager] 73/293: more concise way of making ~/.q3a/baseq3 if not existing
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 70ecde89ddc0b5a95f7c4664d69cbb15e0d5c5da
Author: Jack Coulter <jscinoz at gmail.com>
Date: Sun Jun 29 11:11:31 2008 +0000
more concise way of making ~/.q3a/baseq3 if not existing
---
debian/scripts/quake3 | 8 ++------
debian/scripts/quake3-server | 8 ++------
2 files changed, 4 insertions(+), 12 deletions(-)
diff --git a/debian/scripts/quake3 b/debian/scripts/quake3
index 0b99bd8..660e550 100644
--- a/debian/scripts/quake3
+++ b/debian/scripts/quake3
@@ -34,12 +34,8 @@ while [ "$1" != "" ]; do {
# baseq3 creates botlib.log in cwd rather than ~/.q3a/baseq3
# this is a dirty hack to work around this issue
-if [ -d $HOME/.q3a/baseq3 ]; then
- cd $HOME/.q3a/baseq3
-else
- mkdir -p $HOME/.q3a/baseq3
- cd $HOME/.q3a/baseq3
-fi
+[ -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 1a2dd46..87444ca 100644
--- a/debian/scripts/quake3-server
+++ b/debian/scripts/quake3-server
@@ -34,12 +34,8 @@ while [ "$1" != "" ]; do {
# baseq3 creates botlib.log in cwd rather than ~/.q3a/baseq3
# this is a dirty hack to work around this issue
-if [ -d $HOME/.q3a/baseq3 ]; then
- cd $HOME/.q3a/baseq3
-else
- mkdir -p $HOME/.q3a/baseq3
- cd $HOME/.q3a/baseq3
-fi
+[ -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