forked from dxatscale/sfpowerscripts
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(envvar): revert env var to use SFPOWERSCRIPTS nomenclature for ba…
…ckward compatibility
- Loading branch information
sfopsbot
committed
Dec 19, 2023
1 parent
8b7cd6a
commit 028a179
Showing
16 changed files
with
78 additions
and
78 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
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
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
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
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
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 |
---|---|---|
|
@@ -11,8 +11,8 @@ export default class GitIdentity { | |
private async setUsername(): Promise<void> { | ||
let username: string; | ||
|
||
if (process.env.sfp_GIT_USERNAME) { | ||
username = process.env.sfp_GIT_USERNAME; | ||
if (process.env.SFPOWERSCRIPTS_GIT_USERNAME) { | ||
username = process.env.SFPOWERSCRIPTS_GIT_USERNAME; | ||
} else { | ||
username = 'sfp'; | ||
} | ||
|
@@ -23,8 +23,8 @@ export default class GitIdentity { | |
private async setEmail(): Promise<void> { | ||
let email: string; | ||
|
||
if (process.env.sfp_GIT_EMAIL) { | ||
email = process.env.sfp_GIT_EMAIL; | ||
if (process.env.SFPOWERSCRIPTS_GIT_EMAIL) { | ||
email = process.env.SFPOWERSCRIPTS_GIT_EMAIL; | ||
} else { | ||
email = '[email protected]'; | ||
} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
const sfp_DEFAULT_SHELL = `sh`; | ||
const SFPOWERSCRIPTS_DEFAULT_SHELL = `sh`; | ||
|
||
export default function defaultShell(): string { | ||
return process.env.sfp_DEFAULT_SHELL | ||
? process.env.sfp_DEFAULT_SHELL | ||
: sfp_DEFAULT_SHELL; | ||
return process.env.SFPOWERSCRIPTS_DEFAULT_SHELL | ||
? process.env.SFPOWERSCRIPTS_DEFAULT_SHELL | ||
: SFPOWERSCRIPTS_DEFAULT_SHELL; | ||
} |
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
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