Add auto downloading of files #4

Merged
Fascinated merged 13 commits from development into master 2023-07-12 13:45:19 +00:00
2 changed files with 2 additions and 1 deletions
Showing only changes of commit d6122ff404 - Show all commits

@ -1,6 +1,6 @@
{
"name": "simple-links",
"version": "0.1.6",
"version": "0.1.7",
"private": false,
"scripts": {
"dev": "next dev",

@ -7,6 +7,7 @@ echo "Checking if files need to be downloaded"
if [ -z "$(ls -A $workDir/public)" ]; then
echo "Some files are missing, downloading them"
if [ ! -w "$workDir" ]; then
# TODO: fix this. it doesn't seem to be working?
echo "The directory \"$workDir\" is not writeable, unable to download files. Please check your docker compose for :ro and set it to :rw"
fi
for item in "${toDownload[@]}"