We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a77786 commit c231be8Copy full SHA for c231be8
action.yml
@@ -74,11 +74,7 @@ runs:
74
$vol = '${{ inputs.work-vol }}'
75
# If temporary drive D: doesn't exist in the VM, fallback to C:
76
if ("$vol" -eq '') {
77
- if (Test-Path -LiteralPath 'D:\') {
78
- $vol = 'D:'
79
- } else {
80
- $vol = 'C:'
81
- }
+ $vol = (Test-Path -LiteralPath 'D:\') ? 'D:' : 'C:'
82
}
83
84
$setupExe = "$vol\setup.exe"
@@ -150,10 +146,7 @@ runs:
150
146
151
147
152
148
153
- $installDir = "$vol\cygwin"
154
- if ('${{ inputs.install-dir }}' -ne '') {
155
- $installDir = '${{ inputs.install-dir }}'
156
149
+ $installDir = '${{ inputs.install-dir }}' -ne '' ? '${{ inputs.install-dir }}' : "$vol\cygwin"
157
158
$packageDir = "$vol\cygwin-packages"
159
0 commit comments