Skip to content

Commit

Permalink
check if tmpdir creation succeeded, exit otherwise (bnc#796918)
Browse files Browse the repository at this point in the history
  • Loading branch information
bugfinder committed Jan 7, 2013
1 parent ebf17f5 commit 0da19f9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions 20-files-present-and-referenced
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ test "$VERBOSE" = true && echo -n "- checking if needed files are present and no
# first make my TMPDIR
#
export TMPDIR=`mktemp -d -t check_if_valid_source_dir-XXXXXX 2>/dev/null || mktemp -d /var/tmp/check_if_valid_source_dir-XXXXXX`

test -n "$TMPDIR" -a -d "$TMPDIR" || {
echo "could not create TMPDIR, exiting"
exit 1
}

#
# now create list of Sources.
#
Expand Down

0 comments on commit 0da19f9

Please sign in to comment.