Make updating calibre on file mirrors robust against history rewriting

This commit is contained in:
Kovid Goyal 2015-02-06 13:03:20 +05:30
parent 415b7f4de5
commit afc333449e

View File

@ -31,7 +31,7 @@ scp -r ~/work/vim/zsh-syntax-highlighting $server:work/vim
scp -r ~/work/vim/zsh-history-substring-search $server:work/vim
cd /usr/local && git clone https://github.com/kovidgoyal/calibre.git
echo '#!/bin/sh\ncd /usr/local/calibre && git pull -q' > /usr/local/bin/update-calibre && chmod +x /usr/local/bin/update-calibre
echo '#!/bin/sh\ncd /usr/local/calibre && git fetch -q && git reset --hard -q origin/master' > /usr/local/bin/update-calibre && chmod +x /usr/local/bin/update-calibre
Edit /etc/default/rcS and set
FSCKFIX=yes