Skip to content

chmod: No such file or directory #62

@ahw

Description

@ahw
  1. vim ~/Desktop/scratch.js
  2. Edit file
  3. :CreateSelfHook BufWritePost
  4. The plugin attempts to run chmod u+x ./scratch.js when it should be running chmod u+x ~/Desktop/scratch.js. It fails because ./scratch.js doesn't exist
"Desktop/scratch.js" 323L, 10027C written
[vim-hooks] Could not execute script ./scratch.js because it does not have "execute" permissions.
Set executable bit (chmod u+x) [yn]?
[vim-hooks] Running chmod u+x ./scratch.js
:!chmod u+x ./scratch.js
chmod: ./scratch.js: No such file or directory

shell returned 1
[vim-hooks] Could not execute script ./scratch.js because it does not have "execute" permissions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions