From 4a56a7feff4fe8ed427cddff6e6b2719f0fe58c3 Mon Sep 17 00:00:00 2001 From: Brian Dolbec Date: Mon, 11 Jul 2022 17:58:23 -0700 Subject: revdep-rebuild.sh: Create its cache dir if it doesn't exist Bug: https://bugs.gentoo.org/382009 Signed-off-by: Brian Dolbec --- bin/revdep-rebuild.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/revdep-rebuild.sh b/bin/revdep-rebuild.sh index 5fecf97..7ee3647 100755 --- a/bin/revdep-rebuild.sh +++ b/bin/revdep-rebuild.sh @@ -570,7 +570,8 @@ verify_tmpdir() { elif [[ -d $1 ]]; then cd "$1" else - die 1 "Unable to find a satisfactory location for temporary files ($1)" + mkdir -p "$1" + cd "$1" fi [[ $VERBOSE ]] && einfo "Temporary cache files are located in $PWD" setup_rm -- cgit v1.2.3-18-g5258