summaryrefslogtreecommitdiff
path: root/ssh-co-dotfiles
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2014-09-19 10:02:40 +0200
committerPeter Palfrader <peter@palfrader.org>2014-09-19 10:02:46 +0200
commit525a410c69c9275b148370ff68c9aa5a34b13f9e (patch)
treee61b6bf4bdb0c6208af4f577d1376198fcaa06c3 /ssh-co-dotfiles
parentadbffb5a4c01979e3d218052c8a21050c666e492 (diff)
do not create a temporary .dotfiles that may then be useless if thhhings fails
Diffstat (limited to 'ssh-co-dotfiles')
-rwxr-xr-xssh-co-dotfiles7
1 files 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 &&