summaryrefslogtreecommitdiff
path: root/tests/mkdir/p-2
blob: d007f3551522602b19d55590e2358ab8f377cf2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
# Just like p-1, but with TMPDIR=.

: ${MKDIR=mkdir}

TMPDIR=.

if test "$VERBOSE" = yes; then
  set -x
  $MKDIR --version
fi

tmp=$TMPDIR/t-mkdir.$$
temp_files=$tmp
rm -rf $temp_files

$MKDIR --parents $tmp || fail=1

test -d $tmp || fail=1

rm -rf $temp_files

exit $fail