Skip to content

Commit 68321b4

Browse files
Merge pull request #99 from SocketDev/cg/fixPostinstallScript
[Fix] Update wrong file path
2 parents 47047ab + c16589b commit 68321b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/commands/wrapper/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function setupCommand (name, description, argv, importMeta) {
5252

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

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

0 commit comments

Comments
 (0)