Fix use of mktemp in test script

This commit is contained in:
Maxime Coste 2014-12-10 19:26:51 +00:00
parent 319cfcda34
commit ea063fd2ef

View File

@ -7,7 +7,7 @@ main() {
number_failures=0 number_failures=0
dirs="$@" dirs="$@"
test=$(pwd) test=$(pwd)
work=$(mktemp -d) work=$(mktemp -d /tmp/kak-tests.XXXXXXXX)
cp -R . $work cp -R . $work
trap "rm -R $work" EXIT trap "rm -R $work" EXIT
for dir in $(find $dirs -type d); do for dir in $(find $dirs -type d); do