-added quotes to all paths in rm -rf statements
This commit is contained in:
parent
2f5a1c4df6
commit
948a0e584d
5 changed files with 10 additions and 9 deletions
|
@ -12,7 +12,7 @@ if os.geteuid() != 0:
|
|||
PATH_INI_FILE = '/etc/airtime/media-monitor.cfg'
|
||||
|
||||
def remove_path(path):
|
||||
os.system("rm -rf " + path)
|
||||
os.system('rm -rf "%s"' % path)
|
||||
|
||||
def get_current_script_dir():
|
||||
current_script_dir = os.path.realpath(__file__)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue