소스 검색

Use /bin/sh instead of /bin/bash (PlugSnapshot)

Junegunn Choi 11 년 전
부모
커밋
48e8000b6a
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      plug.vim
  2. 1 1
      test/workflow.vader

+ 1 - 1
plug.vim

@@ -1518,7 +1518,7 @@ function! s:snapshot(...) abort
     \   ['@echo off', ':: Generated by vim-plug', ':: '.strftime("%c"), '',
     \    ':: Make sure to PlugUpdate first', '', 'set PLUG_HOME='.s:esc(home)]] :
     \ ['sh', '$PLUG_HOME',
-    \   ['#!/bin/bash',  '# Generated by vim-plug', '# '.strftime("%c"), '',
+    \   ['#!/bin/sh',  '# Generated by vim-plug', '# '.strftime("%c"), '',
     \    'vim +PlugUpdate +qa', '', 'PLUG_HOME='.s:esc(home)]]
 
   call s:prepare()

+ 1 - 1
test/workflow.vader

@@ -1017,7 +1017,7 @@ Execute (PlugSnapshot):
   PlugClean!
   PlugInstall
   PlugSnapshot
-  AssertEqual '#!/bin/bash', getline(1)
+  AssertEqual '#!/bin/sh', getline(1)
   AssertEqual '# Generated by vim-plug', getline(2)
   AssertEqual 'vim +PlugUpdate +qa', getline(5)
   AssertEqual 'PLUG_HOME=$TMPDIR/plugged', getline(7)