summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJudd Vinet <judd@archlinux.org>2004-04-02 02:48:50 +0200
committerJudd Vinet <judd@archlinux.org>2004-04-02 02:48:50 +0200
commitabe20f6ff58f4ef9ed4a6a4670d8c46332ce56cc (patch)
tree7a453e252a88bbf0a1daff1fe6ffcf5f667443b3
parentf277673d7e083f2cb32537a1764c1819edecb923 (diff)
downloaddbscripts-abe20f6ff58f4ef9ed4a6a4670d8c46332ce56cc.tar.gz
dbscripts-abe20f6ff58f4ef9ed4a6a4670d8c46332ce56cc.tar.xz
fixed a temp name bug
-rwxr-xr-xdb-arch8
1 files changed, 4 insertions, 4 deletions
diff --git a/db-arch b/db-arch
index 506346b..3c201c2 100755
--- a/db-arch
+++ b/db-arch
@@ -1,5 +1,5 @@
#!/bin/bash
-# $Id: db-arch,v 1.14 2004/04/01 21:09:13 judd Exp $
+# $Id: db-arch,v 1.15 2004/04/02 00:48:50 judd Exp $
uid=`id -u`
repoid=1
@@ -29,11 +29,11 @@ trap cleanup SIGINT
touch /tmp/.repolck.$repoid
# RedHat's mktemp is broken...
-if [ -d /tmp/archpkg.$uid ]; then
+if [ -d $TMPDIR ]; then
echo "==> Removing old temp dir..." >&2
- rm -rf /tmp/archpkg.$uid || exit 1
+ rm -rf $TMPDIR || exit 1
fi
-mkdir /tmp/archpkg.$uid; [ $? -gt 0 ] && exit 1
+mkdir $TMPDIR; [ $? -gt 0 ] && exit 1
echo "==> Generating Pacman Database for CURRENT..." >&2
cd $TMPDIR