Don't assume the value of XDG_RUNTIME_DIR in the error message

This commit is contained in:
Debarshi Ray 2018-11-09 10:58:18 +00:00
parent 02f9650b5f
commit 9b9cdf2179

View file

@ -81,7 +81,7 @@ create()
if ! $prefix_sudo buildah config --volume $XDG_RUNTIME_DIR $working_container_name >/dev/null 2>&42; then if ! $prefix_sudo buildah config --volume $XDG_RUNTIME_DIR $working_container_name >/dev/null 2>&42; then
$prefix_sudo buildah rmi $working_container_name >/dev/null 2>&42 $prefix_sudo buildah rmi $working_container_name >/dev/null 2>&42
echo "$0: failed to configure volume for /run/user/$UID" echo "$0: failed to configure volume for $XDG_RUNTIME_DIR"
exit 1 exit 1
fi fi