1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-10-02 06:07:19 +02:00

fixed cleanup script to work with dir names with spaces

Amarinder Cheema 2019-02-14 22:46:46 -08:00
parent 1cdbfceb47
commit 8a7788462b

@ -162,8 +162,8 @@ The content of our cleanup script is
```
#!/bin/bash
if [ -d "$radarr_moviefile_sourcefolder" ] && [ "$(basename $radarr_moviefile_sourcefolder)" = "deluge_extracted" ] ; then
/bin/rm -rf $radarr_moviefile_sourcefolder
if [ -d "$radarr_moviefile_sourcefolder" ] && [ "$(basename "$radarr_moviefile_sourcefolder")" = "deluge_extracted" ] ; then
/bin/rm -rf "$radarr_moviefile_sourcefolder"
fi
```
If you used the second unrar-only example script, ensure you rename "deluge_extracted" to "EXTRACTED" in the second condition of the if statement.