New paste: add_paste.sh
This commit is contained in:
parent
fa000f73bb
commit
d77d944357
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user