From d77d944357eb7c2f60e051ba18265101721952f6 Mon Sep 17 00:00:00 2001 From: Thomas Jensen Date: Fri, 1 May 2020 22:04:59 +0200 Subject: [PATCH] New paste: add_paste.sh --- add_paste.sh | 4 ++++ 1 file changed, 4 insertions(+) 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