Skip to content

Commit

Permalink
print: python2 -> python3
Browse files Browse the repository at this point in the history
  • Loading branch information
vsoch authored Jul 30, 2024
1 parent 473a0e9 commit 008ec30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker2singularity.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 008ec30

Please sign in to comment.