Gentoo Archives: gentoo-commits

From: Jeremy Olexa <darkside@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/qa-scripts:master commit in: /
Date: Tue, 29 Mar 2011 19:12:38
Message-Id: e39691fe7612e88ef8344e02fb99985f592abe71.darkside@gentoo
1 commit: e39691fe7612e88ef8344e02fb99985f592abe71
2 Author: Jeremy Olexa <darkside <AT> gentoo <DOT> org>
3 AuthorDate: Tue Mar 29 19:12:10 2011 +0000
4 Commit: Jeremy Olexa <darkside <AT> gentoo <DOT> org>
5 CommitDate: Tue Mar 29 19:12:10 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=e39691fe
7
8 mkdir $DIR if not present
9
10 ---
11 check_eclasses_eapis.sh | 7 ++++++-
12 1 files changed, 6 insertions(+), 1 deletions(-)
13
14 diff --git a/check_eclasses_eapis.sh b/check_eclasses_eapis.sh
15 index aa77dfa..3e53808 100755
16 --- a/check_eclasses_eapis.sh
17 +++ b/check_eclasses_eapis.sh
18 @@ -2,7 +2,12 @@
19 # Created by Tomáš Chvátal <scarabeus@g.o>
20 # License WTFPL-2.0
21
22 -[[ -z ${1} ]] && DIR="${1}" || DIR=$(pwd)
23 +if [[ -z ${1} ]]; then
24 + DIR="${1}"
25 + [[ -d ${DIR} ]] || mkdir -p ${DIR}
26 +else
27 + DIR=$(pwd)
28 +fi
29
30 [[ $(type pquery 2> /dev/null) ]] || exit 1