Skip to content

Commit

Permalink
Merge pull request #99 from SocketDev/cg/fixPostinstallScript
Browse files Browse the repository at this point in the history
[Fix] Update wrong file path
  • Loading branch information
charliegerard authored Jan 22, 2024
2 parents 47047ab + c16589b commit 68321b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/commands/wrapper/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function setupCommand (name, description, argv, importMeta) {

if (argv[0] === '--postinstall') {
// Check if the wrapper is already enabled before showing the postinstall prompt
const socketWrapperEnabled = (fs.existsSync(BASH_FILE) && checkSocketWrapperAlreadySetup(BASH_FILE)) || (fs.existsSync(ZSH_BASH_FILE) && checkSocketWrapperAlreadySetup(BASH_FILE))
const socketWrapperEnabled = (fs.existsSync(BASH_FILE) && checkSocketWrapperAlreadySetup(BASH_FILE)) || (fs.existsSync(ZSH_BASH_FILE) && checkSocketWrapperAlreadySetup(ZSH_BASH_FILE))

if (!socketWrapperEnabled) {
installSafeNpm(`The Socket CLI is now successfully installed! 🎉
Expand Down

0 comments on commit 68321b4

Please sign in to comment.