From 1f5a52eba53dda8ce964ee2dc8681cf70e9eccb8 Mon Sep 17 00:00:00 2001
From: Dan Goodliffe <dan.goodliffe@octal.co.uk>
Date: Fri, 27 Aug 2021 11:12:53 +0100
Subject: Show image in PORTAGE_TMPDIR, not /var/tmp

---
 bashrc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bashrc b/bashrc
index 58a0c96..c8014dc 100644
--- a/bashrc
+++ b/bashrc
@@ -29,7 +29,7 @@ showimage() {
 		local pkg
 		pkg=$1
 		pkg="${pkg:=*/*}"
-		cd /var/tmp/portage/$pkg-*/image || return 1
+		cd $(portageq envvar PORTAGE_TMPDIR)/portage/$pkg-*/image || return 1
 		find . -not -type d -print0 | xargs -0r ls -lvhF --color=auto
 		du -shc */*
 	)
-- 
cgit v1.2.3