diff --git a/.travis.yml b/.travis.yml index 9787d82..4d589a6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,7 +21,7 @@ before_install: - racket_commit=fail - racket_commit=$(curl http://www.cs.utah.edu/plt/snapshots/current/ | tr "\n" " " | sed -e 's/[ ][ ]*/ /g' | sed -e 's/^.* *//' | sed -e 's| *.*$||') - if test ${#racket_commit} -ne 40 || echo $racket_commit | grep [^0-9a-f]; then racket_commit=fail; fi -- if test -e $HOME/cache/racket_commit -a "${racket_commit}" = "$(cat $HOME/cache/racket_commit)"; then echo "Using cached version of racket installer, commit ${racket_commit} == $(cat $HOME/cache/racket_commit)."; else if test -e $HOME/cache; then rm -fr $HOME/cache; fi; mkdir -p $HOME/cache; echo $racket_commit > $HOME/cache/racket_commit; curl -L -o $HOME/cache/installer.sh http://www.cs.utah.edu/plt/snapshots/current/installers/racket-current-x86_64-linux-precise.sh; fi +- if test -e $HOME/cache/racket_commit -a "${racket_commit}" = "$(cat $HOME/cache/racket_commit)"; then echo "Using cached version of racket installer, commit ${racket_commit} == $(cat $HOME/cache/racket_commit) ."; else echo "Downloading new version of racket installer, new commit = $racket_commit, old commit = $(cat $HOME/cache/racket_commit)."; if test -e $HOME/cache; then rm -fr $HOME/cache; fi; mkdir -p $HOME/cache; echo $racket_commit > $HOME/cache/racket_commit; curl -L -o $HOME/cache/installer.sh http://www.cs.utah.edu/plt/snapshots/current/installers/racket-current-x86_64-linux-precise.sh; fi - sh $HOME/cache/installer.sh --in-place --dest ~/racket/ - echo "LaTeX extra packages:" - echo "tlmgr init-usertree"