New paste: add_paste.sh

This commit is contained in:
Thomas Jensen 2020-05-01 22:04:59 +02:00
parent fa000f73bb
commit d77d944357
1 changed files with 4 additions and 0 deletions

View File

@ -5,6 +5,10 @@ filename=$1
folder=/home/hebron/pastebin
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
git pull