We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dae423e commit 9ac42ceCopy full SHA for 9ac42ce
action.yml
@@ -59,11 +59,7 @@ runs:
59
$vol = '${{ inputs.work-vol }}'
60
# If temporary drive D: doesn't exist in the VM, fallback to C:
61
if ("$vol" -eq '') {
62
- if (Test-Path -LiteralPath 'D:\') {
63
- $vol = 'D:'
64
- } else {
65
- $vol = 'C:'
66
- }
+ $vol = (Test-Path -LiteralPath 'D:\') ? 'D:' : 'C:'
67
}
68
69
$setupExe = "$vol\setup.exe"
@@ -94,10 +90,7 @@ runs:
94
90
95
91
96
92
97
- $installDir = "$vol\cygwin"
98
- if ('${{ inputs.install-dir }}' -ne '') {
99
- $installDir = '${{ inputs.install-dir }}'
100
93
+ $installDir = '${{ inputs.install-dir }}' -ne '' ? '${{ inputs.install-dir }}' : "$vol\cygwin"
101
102
$args = @(
103
'-qnO',
0 commit comments