Skip to content
This repository has been archived by the owner on Sep 14, 2022. It is now read-only.

Commit

Permalink
Fix install script when piped to shell.
Browse files Browse the repository at this point in the history
  • Loading branch information
razor-x committed Jun 11, 2015
1 parent 117b3c6 commit 73415db
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## HEAD

- Fix issue where install script would fail
when piped to shell.

## 2.0.0

- Replace [NeoBundle] with [vim-plug].
Expand Down
14 changes: 6 additions & 8 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,9 @@ echo -e "\033[32m ✔ Installed ❰ ~/.vimrc ❱ \033[0m"

echo -e " ➤ Run ❰ PlugInstall ❱ \033[0m"

vim -c silent -c qall! &>/dev/null
VIMRC_INSTALL=true vim -c silent -c qall! &>/dev/null

echo -e "\033[32m ✔ Completed ❰ PlugInstall ❱ \033[0m"

echo -e "\033[32m✔ Install complete! \033[0m"

exit 0
echo | vim -c qall!; \
(export VIMRC_INSTALL=true && echo | vim -c qall!); \
echo; \
echo -e "\033[32m ✔ Completed ❰ PlugInstall ❱ \033[0m"; \
echo -e "\033[32m✔ Install complete! \033[0m"; \
exit 0

0 comments on commit 73415db

Please sign in to comment.