在linux端写markdown需要图床而装picGo失败了,一直无法打开,所以自己写了一个小脚本先用着

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# !/bin/bash

cd /media/liuyi/Linux/github/picture
git pull

cd /home/liuyi/Desktop
mv $1 /media/liuyi/Linux/github/picture/pictures

cd /media/liuyi/Linux/github/picture
git add .
git commit -m "picture"
git push origin master

echo -e "\n"
echo "![](https://gitee.com/know_the_emperor/picture/raw/master/pictures/$1)"
echo -e "\n"