my_buildctl : skip sed

This commit is contained in:
Gitouche 2022-03-05 23:57:19 +01:00
parent 105e71d77f
commit 5056109923
1 changed files with 2 additions and 2 deletions

View File

@ -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}'})"
}