@@ -16,7 +16,7 @@ source %{util_script}
1616
1717# Load the image and remember its name
1818image_id=$( %{image_id_extractor_path} %{base_image_tar})
19- $DOCKER $DOCKER_FLAGS load -i %{base_image_tar}
19+ " $DOCKER " $DOCKER_FLAGS load -i %{base_image_tar}
2020
2121# Create a docker volume containing the installer script and the
2222# installables TAR file.
@@ -44,21 +44,21 @@ cp -L $(pwd)/%{installer_script} $tmpdir/installer.sh
4444# Temporarily create a container so we can mount the named volume
4545# and copy files. It's okay if /bin/true doesn't exist inside the
4646# image; we are never going to run the image anyways.
47- vid=$( $DOCKER $DOCKER_FLAGS volume create)
48- cid=$( $DOCKER $DOCKER_FLAGS create -v $vid :/tmp/pkginstall $image_id /bin/true)
47+ vid=$( " $DOCKER " $DOCKER_FLAGS volume create)
48+ cid=$( " $DOCKER " $DOCKER_FLAGS create -v $vid :/tmp/pkginstall $image_id /bin/true)
4949for f in $tmpdir /* ; do
50- $DOCKER $DOCKER_FLAGS cp $f $cid :/tmp/pkginstall
50+ " $DOCKER " $DOCKER_FLAGS cp $f $cid :/tmp/pkginstall
5151done
52- $DOCKER $DOCKER_FLAGS rm $cid
52+ " $DOCKER " $DOCKER_FLAGS rm $cid
5353
54- cid=$( $DOCKER $DOCKER_FLAGS run -d -v $vid :/tmp/pkginstall --privileged $image_id /tmp/pkginstall/installer.sh)
54+ cid=$( " $DOCKER " $DOCKER_FLAGS run -d -v $vid :/tmp/pkginstall --privileged $image_id /tmp/pkginstall/installer.sh)
5555
56- $DOCKER $DOCKER_FLAGS attach $cid || true
56+ " $DOCKER " $DOCKER_FLAGS attach $cid || true
5757
5858reset_cmd $image_id $cid %{output_image_name}
59- $DOCKER $DOCKER_FLAGS save %{output_image_name} > %{output_file_name}
60- $DOCKER $DOCKER_FLAGS rm $cid
61- $DOCKER $DOCKER_FLAGS volume rm $vid
59+ " $DOCKER " $DOCKER_FLAGS save %{output_image_name} > %{output_file_name}
60+ " $DOCKER " $DOCKER_FLAGS rm $cid
61+ " $DOCKER " $DOCKER_FLAGS volume rm $vid
6262) > " $log " 2>&1
6363
6464if (( $? )) ; then
0 commit comments