aboutsummaryrefslogtreecommitdiff
path: root/bin/check
diff options
context:
space:
mode:
Diffstat (limited to 'bin/check')
-rwxr-xr-xbin/check6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/check b/bin/check
index fc1b75b..cf80b24 100755
--- a/bin/check
+++ b/bin/check
@@ -11,6 +11,8 @@ test -f "$tgz" || {
exit 2
}
+pwd_orig=$(pwd)
+
tdir=$(mktemp -d "${TMPDIR:-/tmp}"/static-annex-XXXXXXX)
tar xzf "$tgz" -C "$tdir"
cd "$tdir/git-annex-$version"
@@ -32,3 +34,7 @@ command -v git-remote-annex | grep -qF "$base"
command -v git-remote-tor-annex | grep -qF "$base"
git annex test
+
+cd "$pwd_orig"
+chmod -R 777 "$tdir"
+rm -r "$tdir"