#!/bin/bash# the docker run commands leave output files with root ownership# modify the file ownership with the UID of the calling user if[-z$MY_UID];thenMY_UID=`id-u`fiif[-z$MY_GID];thenMY_GID=`id-g`fiif[-z$MY_ROOT_DIR];thenMY_ROOT_DIR=/root/ngraph-testficd$MY_ROOT_DIRfind .-user root > files_to_chown.txtcat files_to_chown.txt | xargs chown${MY_UID}${1}cat files_to_chown.txt | xargs chgrp${MY_GID}${1}rm files_to_chown.txt