From a01ed3869cb03952a6891b1746087cc1134b7187 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Sun, 11 Jul 2010 13:45:51 +0200 Subject: checkpkg: Use temporary working directory --- checkpkg | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/checkpkg b/checkpkg index 47fb672..47344e6 100755 --- a/checkpkg +++ b/checkpkg @@ -27,6 +27,9 @@ if [ "$arch" == 'any' ]; then CARCH='any' fi +TEMPDIR=$(mktemp -d /tmp/checkpkg-script.XXXX) +cd $TEMPDIR + for _pkgname in ${pkgname[@]}; do pkgfile=${_pkgname}-${pkgver}-${pkgrel}-${CARCH}${PKGEXT} oldstylepkgfile=${_pkgname}-${pkgver}-${pkgrel}${PKGEXT} @@ -90,3 +93,5 @@ for _pkgname in ${pkgname[@]}; do echo "No filename differences for $_pkgname." fi done + +echo "Files saved to $TEMPDIR" -- cgit v1.2.3-70-g09d2