Skip to content

Commit 092930b

Browse files
committed
fix get_directory_contents_command ls command parameter
1 parent 927180f commit 092930b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/python/wlsdeploy/util/ssh_command_line_helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def get_does_directory_exist_command(self, directory_path):
178178
def get_directory_contents_command(self, directory_path):
179179
path = self._get_directory_path(directory_path)
180180
# We need the first line of the output to be the path since ls doesn't return the directory path
181-
command = 'echo "%s"; ls /p %s | cat' % (path, path)
181+
command = 'echo "%s"; ls -p %s | cat' % (path, path)
182182
return command
183183

184184
def get_directory_contents(self, output_lines, files_only, pattern_to_match=None):

0 commit comments

Comments
 (0)