diff --git a/add_paste.sh b/add_paste.sh index 5249a55..66cf04f 100644 --- a/add_paste.sh +++ b/add_paste.sh @@ -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