Commit 7be06d1
authored
[12.x] Check if file exists before trying to delete it (#55994)
This avoids the warning "No such file or directory" if the file doesn't exist.
```
$ php artisan config:clear
unlink(/home/jellyfrog/code/librenms/bootstrap/cache/config.php): No such file or directory in /home/jellyfrog/code/librenms/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php on line 308
INFO Configuration cache cleared successfully.
```1 parent f717cce commit 7be06d1
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
308 | | - | |
| 308 | + | |
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
| |||
0 commit comments