From 525a410c69c9275b148370ff68c9aa5a34b13f9e Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Fri, 19 Sep 2014 10:02:40 +0200 Subject: do not create a temporary .dotfiles that may then be useless if thhhings fails --- ssh-co-dotfiles | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ssh-co-dotfiles b/ssh-co-dotfiles index f847336..34a79ea 100755 --- a/ssh-co-dotfiles +++ b/ssh-co-dotfiles @@ -14,8 +14,7 @@ h="$1" echo ssh "$h" '(! [ -e .dotfiles ] || ( [ -e .dotfiles/.svn ] && mv .dotfiles .dotfiles-svn ) ) && rm -rf .dotfiles.new && - mkdir -p .dotfiles/.certs && - cat > .dotfiles/.certs/www.palfrader.org.crt << EOF && + cat > .www.palfrader.org.crt << EOF && -----BEGIN CERTIFICATE----- MIIFYzCCBEugAwIBAgIQJMKGOvTFJfamxTl+S7YAQzANBgkqhkiG9w0BAQUFADBB MQswCQYDVQQGEwJGUjESMBAGA1UEChMJR0FOREkgU0FTMR4wHAYDVQQDExVHYW5k @@ -48,8 +47,8 @@ MBQmrD9cIDBQul8TYms32orn/+pZltTYQ9G9py3a0cC7HHt0peedXIJnRdEGrMVM cIFbNzIrk1reHamFS3w2mrGLWF5/xbdjRZQeeYSom2CLwtN1ywhz -----END CERTIFICATE----- EOF - git -c http.sslCAinfo=/home/weasel/.dotfiles/.certs/www.palfrader.org.crt clone https://www.palfrader.org/git/conf/dotfiles.git .dotfiles.new && - rm -rf .dotfiles && + git -c http.sslCAinfo=/home/weasel/.www.palfrader.org.crt clone https://www.palfrader.org/git/conf/dotfiles.git .dotfiles.new && + rm -f .www.palfrader.org.crt && mv .dotfiles.new .dotfiles && cd .dotfiles && git config --local --add http.sslCAinfo /home/weasel/.dotfiles/.certs/www.palfrader.org.crt && -- cgit v1.2.3