File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import { CreatePlan , DestroyPlan , Resource } from 'codify-plugin-lib' ;
1+ import { Resource } from 'codify-plugin-lib' ;
22import { StringIndexedObject } from 'codify-schemas' ;
33
44import { SpawnStatus , codifySpawn } from '../../../utils/codify-spawn.js' ;
55import { GitEmailParameter } from './git-email-paramater.js' ;
66import { GitNameParameter } from './git-name-parameter.js' ;
7+ import Schema from './git-schema.json' ;
78
89export interface GitConfig extends StringIndexedObject {
910 email ?: string ,
@@ -19,6 +20,7 @@ export class GitResource extends Resource<GitConfig> {
1920 email : { statefulParameter : new GitEmailParameter ( ) , } ,
2021 username : { statefulParameter : new GitNameParameter ( ) } ,
2122 } ,
23+ schema : Schema ,
2224 type : 'git'
2325 } ) ;
2426 }
Original file line number Diff line number Diff line change @@ -47,8 +47,8 @@ export const Utils = {
4747 } ,
4848
4949 async isArmArch ( ) : Promise < boolean > {
50- const query = await codifySpawn ( 'uname -m ' ) ;
51- return query . data . includes ( 'arm' ) ;
50+ const query = await codifySpawn ( 'sysctl -n machdep.cpu.brand_string ' ) ;
51+ return / M ( [ 0 - 9 ] ) / . test ( query . data ) ;
5252 } ,
5353
5454 async isDirectoryOnPath ( directory : string ) : Promise < boolean > {
You can’t perform that action at this time.
0 commit comments