Commit 8873a238 authored by Han-Miru Kim's avatar Han-Miru Kim
Browse files

sync-pdf: use ssh key

parent 504490b9
#!/bin/bash
# copies the main.pdf from current directory into predefined slot
echo "Select destination:"
echo "0: Quit"
echo "1: Commutative Algebra"
echo "2: Algebraic Topology I"
echo "3: Quantum Mechanics I"
host=kimha@slab1.ethz.ch
dir=/nas/kimha/homepage/download/lecture-notes
read number
case $number in
0)
echo "Exiting."
exit 0
;;
1)
filename=05-commutative-algebra.pdf
;;
2)
filename=05-algebraic-topology-i.pdf
;;
3)
filename=05-quantum-mechanics-i.pdf
;;
esac
echo "scp ./main.pdf $host:$dir/$filename"
scp ./main.pdf $host:$dir/$filename
/home/hk/.local/bin/sync-pdf
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment