Skip to content

Commit

Permalink
Check that statics exist before deleting
Browse files Browse the repository at this point in the history
  • Loading branch information
mbsantiago committed Jan 11, 2024
1 parent cfe837a commit 118a67c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/update_front.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
cd back

# Delete the old static files
Remove-Item -Path src/whombat/statics/* -Recurse -Force
if (Test-Path src/whombat/statics/*) {
Remove-Item -Path src/whombat/statics/* -Recurse -Force
}

# Go to the root directory of the frontend
cd ../front
Expand Down

0 comments on commit 118a67c

Please sign in to comment.