mirror of
https://github.com/Radarr/Radarr
synced 2025-01-03 05:44:50 +00:00
fixed cleanup script to work with dir names with spaces
parent
1cdbfceb47
commit
8a7788462b
1 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue