From 37b949fb8ee698804fe0386f1430ff9f7133a984 Mon Sep 17 00:00:00 2001 From: Edwin Eefting Date: Wed, 26 Jul 2017 19:52:24 +0200 Subject: [PATCH] MORE cowbell! --- zfs_autobackup | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zfs_autobackup b/zfs_autobackup index eed8fb9..6b9ba0b 100755 --- a/zfs_autobackup +++ b/zfs_autobackup @@ -45,9 +45,11 @@ def run(cmd, input=None, ssh_to="local", tab_split=False, valid_exitcodes=[ 0 ], #make sure the command gets all the data in utf8 format: #(this is neccesary if LC_ALL=en_US.utf8 is not set in the environment) + encoded_cmd.append('"') for arg in cmd: #add single quotes for remote commands to support spaces and other wierd stuff (remote commands are executed in a shell) encoded_cmd.append( ("'"+arg+"'").encode('utf-8')) + encoded_cmd.append('"') else: for arg in cmd: