From 008ec30b3c6f86eff06bc9505136e8b0bb16d729 Mon Sep 17 00:00:00 2001 From: Vanessasaurus <814322+vsoch@users.noreply.github.com> Date: Mon, 29 Jul 2024 23:22:28 -0600 Subject: [PATCH] print: python2 -> python3 --- docker2singularity.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker2singularity.sh b/docker2singularity.sh index 49b9c6f..38cf52f 100755 --- a/docker2singularity.sh +++ b/docker2singularity.sh @@ -12,7 +12,7 @@ # USAGE: docker2singularity.sh ubuntu:14.04 # # -# Copyright (c) 2016-2019 Vanessa Sochat, All Rights Reserved +# Copyright (c) 2016-2024 Vanessa Sochat, All Rights Reserved # Copyright (c) 2017 Singularityware LLC and AUTHORS # # Permission is hereby granted, free of charge, to any person obtaining a copy @@ -243,7 +243,7 @@ unset SINGULARITY_MESSAGELEVEL echo "(4/10) Adding run script..." function shell_escape () { - python -c 'import json, pipes, sys; print " ".join(pipes.quote(a) for a in json.load(sys.stdin) or [])' + python -c 'import json, pipes, sys; print(" ".join(pipes.quote(a) for a in json.load(sys.stdin) or []))' } CMD=$(docker inspect --format='{{json .Config.Cmd}}' $image | shell_escape)