Skip to content

Commit

Permalink
Merge pull request #56 from larsewi/install
Browse files Browse the repository at this point in the history
CFE-4150: Fixed bug when installing packages containing spaces
  • Loading branch information
olehermanse authored Mar 17, 2023
2 parents b046461 + e1515df commit 83d35b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cf_remote/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def install_package(host, pkg, data, *, connection=None):

print("Installing: '{}' on '{}'".format(pkg, host))
if ".deb" in pkg:
output = ssh_sudo(connection, "dpkg -i {}".format(pkg), True)
output = ssh_sudo(connection, 'dpkg -i "{}"'.format(pkg), True)
elif ".msi" in pkg:
# Windows is crazy, be careful if you decide to change this;
# This needs to work in both powershell and cmd, and in
Expand Down

0 comments on commit 83d35b3

Please sign in to comment.