Skip to content

Commit dea9e4a

Browse files
committed
CI: Use forward-slashes in paths (cross-platform)
Backslashes ("\") can be interpreted as escape characters on Unix (Linux, macOS). Replace with forward-slashes, "/", which are interpreted the same (as directory separators) on all OSes, at least in arguments to commands such as `cd` and `node`.
1 parent c43578e commit dea9e4a

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

script/vsts/nightly-release.yml

Lines changed: 4 additions & 4 deletions
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 --nightly
12+
- script: node script/vsts/get-release-version.js --nightly
1313
name: Version
1414
env:
1515
REPO_OWNER: $(REPO_OWNER)
@@ -40,7 +40,7 @@ jobs:
4040
#This has to be done separately because VSTS inexplicably
4141
#exits the script block after `npm install` completes.
4242
- script: |
43-
cd script\vsts
43+
cd script/vsts
4444
npm install
4545
displayName: npm install
4646
@@ -51,7 +51,7 @@ jobs:
5151
displayName: Download Release Artifacts
5252

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

script/vsts/pull-requests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ jobs:
88
# This has to be done separately because VSTS inexplicably
99
# exits the script block after `npm install` completes.
1010
- script: |
11-
cd script\vsts
11+
cd script/vsts
1212
npm install
1313
displayName: npm install
14-
- script: node script\vsts\get-release-version.js
14+
- script: node script/vsts/get-release-version.js
1515
name: Version
1616
env:
1717
REPO_OWNER: $(REPO_OWNER)

script/vsts/release-branch-build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
# This has to be done separately because VSTS inexplicably
1313
# exits the script block after `npm install` completes.
1414
- script: |
15-
cd script\vsts
15+
cd script/vsts
1616
npm install
1717
displayName: npm install
18-
- script: node script\vsts\get-release-version.js
18+
- script: node script/vsts/get-release-version.js
1919
name: Version
2020
env:
2121
REPO_OWNER: $(REPO_OWNER)
@@ -47,7 +47,7 @@ jobs:
4747
# This has to be done separately because VSTS inexplicably
4848
# exits the script block after `npm install` completes.
4949
- script: |
50-
cd script\vsts
50+
cd script/vsts
5151
npm install
5252
env:
5353
GITHUB_TOKEN: $(GITHUB_TOKEN)
@@ -60,7 +60,7 @@ jobs:
6060
displayName: Download Release Artifacts
6161

6262
- script: |
63-
node $(Build.SourcesDirectory)\script\vsts\upload-artifacts.js --create-github-release --assets-path "$(System.ArtifactsDirectory)" --linux-repo-name "atom-staging"
63+
node $(Build.SourcesDirectory)/script/vsts/upload-artifacts.js --create-github-release --assets-path "$(System.ArtifactsDirectory)" --linux-repo-name "atom-staging"
6464
env:
6565
GITHUB_TOKEN: $(GITHUB_TOKEN)
6666
ATOM_RELEASE_VERSION: $(ReleaseVersion)
@@ -75,7 +75,7 @@ jobs:
7575
condition: and(succeeded(), eq(variables['Atom.AutoDraftRelease'], 'true'), eq(variables['IsReleaseBranch'], 'true'))
7676
7777
- script: |
78-
node $(Build.SourcesDirectory)\script\vsts\upload-artifacts.js --assets-path "$(System.ArtifactsDirectory)" --s3-path "vsts-artifacts/$(Build.BuildId)/"
78+
node $(Build.SourcesDirectory)/script/vsts/upload-artifacts.js --assets-path "$(System.ArtifactsDirectory)" --s3-path "vsts-artifacts/$(Build.BuildId)/"
7979
env:
8080
ATOM_RELEASE_VERSION: $(ReleaseVersion)
8181
ATOM_RELEASES_S3_KEY: $(ATOM_RELEASES_S3_KEY)

0 commit comments

Comments
 (0)