New paste: add_paste.sh

This commit is contained in:
Thomas Jensen 2020-05-01 22:04:59 +02:00
parent fa000f73bb
commit d77d944357

View File

@ -5,6 +5,10 @@ filename=$1
folder=/home/hebron/pastebin folder=/home/hebron/pastebin
url=https://git.homelab.no/thomasjsn/pastebin/src/branch/master url=https://git.homelab.no/thomasjsn/pastebin/src/branch/master
if [ ! -d "$folder" ]; then
git clone git@repo.homelab.no:thomasjsn/pastebin.git "$folder"
fi
cd $folder cd $folder
git pull git pull