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

This commit is contained in:
Junegunn Choi 2015-02-08 01:07:56 +09:00
parent 79da5b2654
commit 48e8000b6a
2 changed files with 2 additions and 2 deletions

View File

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

View File

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