Skip to content

Commit fbc3742

Browse files
committed
CI: Use forward-slashes in paths (cross-platform)
Backslashes "\" in these paths can be interpreted as escape characters on Unix (Linux, macOS). Replace with forward-slashes, "/", which are interpreted the same (as subdirectory indicator) everywhere.
1 parent aa3c34b commit fbc3742

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

script/vsts/nightly-release.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ jobs:
44
# This has to be done separately because VSTS inexplicably
55
# exits the script block after `npm install` completes.
66
- script: |
7-
cd script\vsts
7+
cd script/vsts
88
npm install
99
displayName: npm install
10-
- script: node script\vsts\get-release-version.js --nightly
10+
- script: node script/vsts/get-release-version.js --nightly
1111
name: Version
1212

1313
# Import OS-specific build definitions
@@ -38,7 +38,7 @@ jobs:
3838
#This has to be done separately because VSTS inexplicably
3939
#exits the script block after `npm install` completes.
4040
- script: |
41-
cd script\vsts
41+
cd script/vsts
4242
npm install
4343
displayName: npm install
4444
@@ -49,7 +49,7 @@ jobs:
4949
displayName: Download Release Artifacts
5050

5151
- script: |
52-
node $(Build.SourcesDirectory)\script\vsts\upload-artifacts.js --create-github-release --assets-path "$(System.ArtifactsDirectory)" --linux-repo-name "atom"
52+
node $(Build.SourcesDirectory)/script/vsts/upload-artifacts.js --create-github-release --assets-path "$(System.ArtifactsDirectory)" --linux-repo-name "atom"
5353
env:
5454
GITHUB_TOKEN: $(GITHUB_TOKEN)
5555
ATOM_RELEASE_VERSION: $(ReleaseVersion)

script/vsts/pull-requests.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ jobs:
66
# This has to be done separately because VSTS inexplicably
77
# exits the script block after `npm install` completes.
88
- script: |
9-
cd script\vsts
9+
cd script/vsts
1010
npm install
1111
displayName: npm install
12-
- script: node script\vsts\get-release-version.js
12+
- script: node script/vsts/get-release-version.js
1313
name: Version
1414

1515
# Import OS-specific build definitions

script/vsts/release-branch-build.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ jobs:
99
# This has to be done separately because VSTS inexplicably
1010
# exits the script block after `npm install` completes.
1111
- script: |
12-
cd script\vsts
12+
cd script/vsts
1313
npm install
1414
displayName: npm install
15-
- script: node script\vsts\get-release-version.js
15+
- script: node script/vsts/get-release-version.js
1616
name: Version
1717

1818
# Import OS-specific build definitions.
@@ -44,7 +44,7 @@ jobs:
4444
# This has to be done separately because VSTS inexplicably
4545
# exits the script block after `npm install` completes.
4646
- script: |
47-
cd script\vsts
47+
cd script/vsts
4848
npm install
4949
env:
5050
GITHUB_TOKEN: $(GITHUB_TOKEN)
@@ -57,7 +57,7 @@ jobs:
5757
displayName: Download Release Artifacts
5858

5959
- script: |
60-
node $(Build.SourcesDirectory)\script\vsts\upload-artifacts.js --create-github-release --assets-path "$(System.ArtifactsDirectory)" --linux-repo-name "atom-staging"
60+
node $(Build.SourcesDirectory)/script/vsts/upload-artifacts.js --create-github-release --assets-path "$(System.ArtifactsDirectory)" --linux-repo-name "atom-staging"
6161
env:
6262
GITHUB_TOKEN: $(GITHUB_TOKEN)
6363
ATOM_RELEASE_VERSION: $(ReleaseVersion)
@@ -69,7 +69,7 @@ jobs:
6969
condition: and(succeeded(), eq(variables['Atom.AutoDraftRelease'], 'true'), eq(variables['IsReleaseBranch'], 'true'))
7070
7171
- script: |
72-
node $(Build.SourcesDirectory)\script\vsts\upload-artifacts.js --assets-path "$(System.ArtifactsDirectory)" --s3-path "vsts-artifacts/$(Build.BuildId)/"
72+
node $(Build.SourcesDirectory)/script/vsts/upload-artifacts.js --assets-path "$(System.ArtifactsDirectory)" --s3-path "vsts-artifacts/$(Build.BuildId)/"
7373
env:
7474
ATOM_RELEASE_VERSION: $(ReleaseVersion)
7575
ATOM_RELEASES_S3_KEY: $(ATOM_RELEASES_S3_KEY)

0 commit comments

Comments
 (0)