Fixed tmp folder issue

This commit is contained in:
Llewellyn van der Merwe 2018-07-05 23:43:04 +02:00
parent be01e19c56
commit 000fff2528
No known key found for this signature in database
GPG Key ID: CAD7B16D27AF28C5
2 changed files with 6 additions and 6 deletions

View File

@ -20,7 +20,7 @@ Clone Repository
$ git clone https://github.com/vdm-io/Backup-System.git Backup-System
```
Make sure all the run file is executable
Make sure the run file is executable
```bash
$ cd Backup-System/

10
run.sh
View File

@ -50,12 +50,12 @@ BASEDIR="$PWD"
# get random folder name to avoid conflict
newFolder=$(getRandom)
# set this repo location
tmpFolder="$USERHOME/T3MPR3P0_$newFolder"
tmpFolder="${USERHOME}T3MPR3P0_${newFolder}"
# create tmp folder
#if [ ! -d "$tmpFolder" ]
#then
# mkdir -p "$tmpFolder"
#fi
if [ ! -d "$tmpFolder" ]
then
mkdir -p "$tmpFolder"
fi
# DB file
databasesFileName="databases"