فهرست منبع

Fix broken shell script chmodding

Broken by changing of the shebang. String comparison is now more
relaxed.
Weiyi Lou 10 سال پیش
والد
کامیت
06b33df1c5
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      vim/settings/templates.vim

+ 1 - 1
vim/settings/templates.vim

@@ -3,7 +3,7 @@
 autocmd BufNewFile *.sh silent 0r ~/dotfiles/vim/templates/bashscript | silent 2,$ g/^#/d | normal G
 
 " Make shell scripts executable on save.
-autocmd BufWritePost *.sh if getline(1) =~ "^#!/bin/" | silent !chmod +x <afile>
+autocmd BufWritePost *.sh if getline(1) =~ "^#!/" | silent !chmod +x <afile>
 
 " Template for makefiles.
 " Removes comments, places cursor at end of file.