1
0
intel-media-ffmpeg/scripts/clean-image.sh
James Ketrenos c39172c2bf Split build-images into build-images and push-images
Modified loading of SOLUTION and MANIFEST so they support nested substitution

Signed-off-by: James Ketrenos <james.p.ketrenos@intel.com>
2019-10-14 10:08:34 -07:00

18 lines
423 B
Bash
Executable File

#!/bin/bash
# Determine if it is Mac OS and switch to use gxargs instead
CMD=xargs
if [ $(which system_profiler) ]; then
CMD=gxargs
fi
# Bring in the variables from SOLUTION file, supporting
# nested substitution
. SOLUTION
. MANIFEST
export $(sed -nE "s,(^[^#][^=]*).*$,\1,pg" SOLUTION | ${CMD} -d '\n')
export $(sed -nE "s,(^[^#][^=]*).*$,\1,pg" MANIFEST | ${CMD} -d '\n')
docker rmi ${REPO_URL}/${CONTAINER}:devel