diff options
author | Judd Vinet <judd@archlinux.org> | 2004-04-02 00:48:50 +0000 |
---|---|---|
committer | Judd Vinet <judd@archlinux.org> | 2004-04-02 00:48:50 +0000 |
commit | abe20f6ff58f4ef9ed4a6a4670d8c46332ce56cc (patch) | |
tree | 7a453e252a88bbf0a1daff1fe6ffcf5f667443b3 | |
parent | f277673d7e083f2cb32537a1764c1819edecb923 (diff) |
fixed a temp name bug
-rwxr-xr-x | db-arch | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |