Skip to content

Commit

Permalink
improve error handling, for winetricks temporary directory setup
Browse files Browse the repository at this point in the history
  • Loading branch information
bobwya authored and austin987 committed Oct 16, 2018
1 parent e58f7e0 commit 18dbafb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/winetricks
Expand Up @@ -5381,6 +5381,10 @@ winetricks_handle_option()
return 0
}

# Test whether temporary directory is valid - before initialising script
[ -d "$W_TMP_EARLY" ] || w_die "temporary directory: '$W_TMP_EARLY' ; does not exist"
[ -w "$W_TMP_EARLY" ] || w_die "temporary directory: '$W_TMP_EARLY' ; is not user writeable"

# Must initialize variables before calling w_metadata
if ! test "$WINETRICKS_LIB"
then
Expand Down

0 comments on commit 18dbafb

Please sign in to comment.