Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion kernelci/storage/ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"""KernelCI storage implementation for SSH"""

import os
import shlex

from paramiko import SSHClient, client
from scp import SCPClient
Expand Down Expand Up @@ -44,7 +45,7 @@ def _upload(self, file_paths, dest_path):
for src, dst in file_paths:
dst_file = os.path.join(self.config.path, dest_path, dst)
dst_dir = os.path.dirname(dst_file)
self._ssh.exec_command(f"mkdir -p {dst_dir}")
self._ssh.exec_command(f"mkdir -p {shlex.quote(dst_dir)}")
self._scp.put(src, dst_file)


Expand Down