diff --git a/src/cmdlib.sh b/src/cmdlib.sh index 32a26bc4f6..da20efa7f8 100755 --- a/src/cmdlib.sh +++ b/src/cmdlib.sh @@ -566,6 +566,7 @@ runcompose_tree() { # with a consistent value, regardless of the environment (umask 0022 && sudo -E "$@") sudo chown -R -h "${USER}":"${USER}" "${tmprepo}" + sudo chown "${USER}":"${USER}" "${composejson}" else runvm_with_cache -- "$@" --repo "${repo}" --write-composejson-to "${composejson}" fi