diff --git a/Common-Problems.md b/Common-Problems.md index 7e539b3..5c19a0c 100644 --- a/Common-Problems.md +++ b/Common-Problems.md @@ -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.