Support for hdfs dfs -mkdir -p /directory/subdirectory

This commit is contained in:
Michael Lee
2015-08-21 16:05:49 +01:00
parent 42a8b4f639
commit 298c04f89c
2 changed files with 17 additions and 8 deletions
+1 -1
View File
@@ -10,4 +10,4 @@ def match(command, settings):
@sudo_support
def get_new_command(command, settings):
return re.sub('^mkdir (.*)', 'mkdir -p \\1', command.script)
return re.sub('\\bmkdir (.*)', 'mkdir -p \\1', command.script)