Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

update to unix format from windows

  • Loading branch information...
commit cd7a13fbc83b0565921aa2fb0cc432050764121d 1 parent 072a00d
@larrycai authored
Showing with 20 additions and 20 deletions.
  1. +20 −20 upload.sh
View
40 upload.sh
@@ -1,21 +1,21 @@
-#!/bin/bash
-ls -al *.pdf
-pdfv1=`git config remote.origin.url`
-pdfv2=${pdfv1#*github.com/}
-pdfname=${pdfv2%/*}_kaiyuanbook.zh.pdf
-echo $pdfv1 $pdfv2 $pdfname
-env
-cp id_rsa_mkbok ~/.ssh/id_rsa
-chmod 600 ~/.ssh/id_rsa
-cat ~/.ssh/known_hosts
-echo "repo.or.cz,195.113.20.142 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEAs7JJacVNc1wk/6RZqMHin5RwR/LdIcMGGeG6WG4Sl/wETY9KYUVd126Yb2MV7vBT/8dW0iE6u6+sRVM3Xn5MG9K2PvQ57SbIQ53FvR4qBCqYkSn5sKs2wt9GpXh2MFN5TuXth2d1BABSR2a1u461K8SKbhclPVeFCeligaI4lGc=" >> ~/.ssh/known_hosts
-cat ~/.ssh/known_hosts
-git clone ssh://mkbok@repo.or.cz/srv/git/mkbok.git mkbok.pdf
-cd mkbok.pdf
-ls -al
-cp ../kaiyuanbook.zh.pdf $pdfname
-git add $pdfname
-git config user.name "Larry Cai"
-git config user.email "larry.caiyu@gmail.com"
-git commit -am "add file"
+#!/bin/bash
+ls -al *.pdf
+pdfv1=`git config remote.origin.url`
+pdfv2=${pdfv1#*github.com/}
+pdfname=${pdfv2%/*}_kaiyuanbook.zh.pdf
+echo $pdfv1 $pdfv2 $pdfname
+env
+cp id_rsa_mkbok ~/.ssh/id_rsa
+chmod 600 ~/.ssh/id_rsa
+cat ~/.ssh/known_hosts
+echo "repo.or.cz,195.113.20.142 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEAs7JJacVNc1wk/6RZqMHin5RwR/LdIcMGGeG6WG4Sl/wETY9KYUVd126Yb2MV7vBT/8dW0iE6u6+sRVM3Xn5MG9K2PvQ57SbIQ53FvR4qBCqYkSn5sKs2wt9GpXh2MFN5TuXth2d1BABSR2a1u461K8SKbhclPVeFCeligaI4lGc=" >> ~/.ssh/known_hosts
+cat ~/.ssh/known_hosts
+git clone ssh://mkbok@repo.or.cz/srv/git/mkbok.git mkbok.pdf
+cd mkbok.pdf
+ls -al
+cp ../kaiyuanbook.zh.pdf $pdfname
+git add $pdfname
+git config user.name "Larry Cai"
+git config user.email "larry.caiyu@gmail.com"
+git commit -am "add file"
git push origin master
Please sign in to comment.
Something went wrong with that request. Please try again.