chmod: No such file or directory
ahw opened this issue · comments
vim ~/Desktop/scratch.js
- Edit file
:CreateSelfHook BufWritePost
- The plugin attempts to run
chmod u+x ./scratch.js
when it should be runningchmod 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.