-
-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #116 from PlagueHO/master and !Deploy
Changed PSYaml support module to use OS specific Temp folder as Default - Fixes #113
- Loading branch information
Showing
3 changed files
with
22 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<# | ||
.SYNOPSIS | ||
Return the OS specific temp folder path. | ||
#> | ||
function Get-TempPath() { | ||
if($ENV:Temp) { | ||
# Windows Temp Folder Location | ||
return $ENV:Temp | ||
} | ||
elseif ($env:TMPDIR) { | ||
# macOS Temp Folder Location | ||
return $ENV:TMPDIR | ||
} | ||
else { | ||
# Linux Temp Folder Location | ||
return '/tmp' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters