summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2011-11-02 21:51:08 +0100
committerPierre Schmitz <pierre@archlinux.de>2011-11-04 19:33:51 +0100
commitc1752bd716c3796f55a0197b87554f603b73034b (patch)
tree5346403c2a42dc47dcfd140de4e9cc1f6711d261
parent42d821ef7b9cfdf4a401563a9351820499620afa (diff)
downloaddevtools32-c1752bd716c3796f55a0197b87554f603b73034b.tar.xz
lib/common.sh: Use double brackets
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
-rw-r--r--lib/common.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/common.sh b/lib/common.sh
index feb5080..e826e97 100644
--- a/lib/common.sh
+++ b/lib/common.sh
@@ -58,14 +58,14 @@ stat_done() {
}
setup_workdir() {
- [ -z "$WORKDIR" ] && WORKDIR=$(mktemp -d /tmp/$(basename $0).XXXXXXXXXX)
+ [[ -z $WORKDIR ]] && WORKDIR=$(mktemp -d /tmp/$(basename $0).XXXXXXXXXX)
}
cleanup() {
trap - EXIT INT QUIT TERM
- [ -n "$WORKDIR" ] && rm -rf "$WORKDIR"
- [ "$1" ] && exit $1
+ [[ -n $WORKDIR ]] && rm -rf "$WORKDIR"
+ [[ $1 ]] && exit $1
}
abort() {