updated cp script

This commit is contained in:
Robin Müller 2021-07-28 18:56:36 +02:00
parent b846a936b4
commit fc769be789
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC

View File

@ -8,7 +8,13 @@ def main():
cmd = build_cmd(args)
# Run the command
print(f'Running command: {cmd}')
os.system(cmd)
result = os.system(cmd)
if result != 0:
print('')
print('Removing problematic SSH key and trying again..')
remove_ssh_key_cmd = 'ssh-keygen -f "${HOME}/.ssh/known_hosts" -R "[localhost]:1535"'
os.system(remove_ssh_key_cmd)
result = os.system(cmd)
def handle_args():