Skip to content

Commit 964721d

Browse files
authored
fix(cli-hermes): profile-hermes doesn't work on Win (#1432)
Replace `egrep` with `grep -E` to at least allow `profile-hermes` to work in git bash on Windows
1 parent 67b6623 commit 964721d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cli-hermes/src/profileHermes/downloadProfile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {
1616
*/
1717
function getLatestFile(packageName: string): string {
1818
try {
19-
const file = execSync(`adb shell run-as ${packageName} ls cache/ -tp | grep -v /$ | egrep '.cpuprofile' | head -1
19+
const file = execSync(`adb shell run-as ${packageName} ls cache/ -tp | grep -v /$ | grep -E '.cpuprofile' | head -1
2020
`);
2121
return file.toString().trim();
2222
} catch (e) {

0 commit comments

Comments
 (0)