You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: generator/cmd/findbasepath.ts
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -6,13 +6,13 @@ import { findAutogenEntries } from '../autogenlist';
6
6
// this function analyzes a branch name and extracts the base path, then proceeds to find it in autogenlist
7
7
// if not found, it throws an error
8
8
executeSynchronous(async()=>{
9
-
if(!process.argv[2]){
10
-
thrownewError("Branch name missing. This cmd expects a branch name with the following format: 'sdkAutomation/[basepath]'");
9
+
if(process.argv.length<4){
10
+
thrownewError("Branch name or Branch prefix missing. This cmd expects a branch name with the following format: branch name -> 'sdkAuto/[basepath]' and branch prefix -> 'sdkAuto/'");
0 commit comments