diff --git a/README.md b/README.md index 97035f6a..87bdbeac 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ If you want to use Whombat for your research, please cite as: > Balvanera, S. M., Mac Aodha, O., Weldy, M. J., Pringle, H., Browning, E., & > Jones, K. E. (2023). Whombat: An open-source annotation tool for machine -> learning development in bioacoustics. arXiv preprint arXiv:2308.12688. +> learning development in bioacoustics. arXiv preprint [arXiv:2308.12688](https://arxiv.org/abs/2308.12688). ## Acknowledgements diff --git a/scripts/update_front.sh b/scripts/update_front.sh index 8abe564e..6292de45 100755 --- a/scripts/update_front.sh +++ b/scripts/update_front.sh @@ -1,14 +1,13 @@ #!/bin/bash # This script is used to update the front end of the website -# Move to the root directory of the backend -cd back - # Delete the old static files -rm -rf src/whombat/statics/* +if [ -d "back/src/whombat/statics" ]; then + rm -rf back/src/whombat/statics +fi # Go to the root directory of the frontend -cd ../front +cd front # Install the dependencies npm install @@ -18,7 +17,7 @@ npm run build # Make sure the statics folder exists if [ ! -d "../back/src/whombat/statics" ]; then - mkdir ../back/src/whombat/statics + mkdir ../back/src/whombat/statics fi # Move the static files to the backend