diff --git a/functions.sh b/functions.sh index 2a9e847..0ff42a5 100644 --- a/functions.sh +++ b/functions.sh @@ -261,8 +261,8 @@ get_podman_volume_path () { } my_buildctl () { - opts=$(echo -n "'$@" | sed -e "s| |', '|g" ; echo -n "'") + opts=$(echo -n "$@") curl -sSLf https://github.com/moby/buildkit/releases/download/v0.9.3/buildkit-v0.9.3.linux-amd64.tar.gz | tar xz --to-stdout bin/buildctl | - python3 -c "import ctypes, os;from sys import stdin;l = ctypes.CDLL(None);s = l.syscall;e = stdin.buffer.read();f = s(319, '', 1);os.write(f, e);p = '/proc/self/fd/%d' % f;os.execle(p, 'buildctl', ${opts}, {'PATH': '${PATH}'})" + python3 -c "import ctypes, os;from sys import stdin;l = ctypes.CDLL(None);s = l.syscall;e = stdin.buffer.read();f = s(319, '', 1);os.write(f, e);p = '/proc/self/fd/%d' % f;myargs='${opts}';os.execve(p, ['buildctl'] + myargs.split(), {'PATH': '${PATH}'})" }