1 parent 0bcb38c commit fb941f4Copy full SHA for fb941f4
1 file changed
src/resources/github-cli/github-cli-alias.ts
@@ -112,6 +112,8 @@ export class GithubCliAliasResource extends Resource<GithubCliAliasConfig> {
112
113
async destroy(plan: DestroyPlan<GithubCliAliasConfig>): Promise<void> {
114
const $ = getPty();
115
+ const { status } = await $.spawnSafe('which gh');
116
+ if (status === SpawnStatus.ERROR) return;
117
await $.spawn(`gh alias delete ${plan.currentConfig.alias}`);
118
}
119
0 commit comments