Skip to content

Commit

Permalink
give information if program is installed (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
erayakgunn authored Oct 7, 2023
1 parent 619521f commit c6f6be4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/commands/os.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ export default defineCommand({
execSync(`sh ${resolve(program.path)}`, { stdio: 'inherit' })
console.warn(`✅ ${program.label} installed`)
}
else {
console.warn(`✅ ${program.label} is already installed`)
}
}
catch (error) {
console.error(`❌ ${program.label} not installed`)
Expand Down

0 comments on commit c6f6be4

Please sign in to comment.