summaryrefslogtreecommitdiff
path: root/deploy.sh
blob: 2b407950fe076ec16769d5d3c756c583ff4baa4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash

cur=`pwd`

cd ~/

homedir=`pwd`

path="${homedir}/Documents/texassets"

echo "Deploying assets folder. This will let you compile the latex templates"

if [[ -f $path ]]
then
    echo "Path already exists, exiting"
    exit
fi

if [[ -d ${path} ]]
then
    echo "Path already exists but is file, copying files"
else 
    echo "Path does not exist, making new folder and copying files"
    mkdir ${path}
fi
cd $cur
cp "${cur}/assets/"*.png ${path}

echo "done"