aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2024-11-03 19:37:52 -0500
committerKyle Meyer <kyle@kyleam.com>2024-11-03 19:37:52 -0500
commitccaddaf874ccb1e954eb78c36b235e6d606aeb5c (patch)
treec8eb3d97874e6ce9cb7b6d64de1f569974268bf0 /bin
parentb353618968ae064acfe0e2aac63fb200a3afde2b (diff)
downloadstatic-annex-master.tar.gz
check: Delete temp directory if 'git annex test' succeedsHEADmaster
Diffstat (limited to 'bin')
-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"