commit:     4a56a7feff4fe8ed427cddff6e6b2719f0fe58c3
Author:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 12 00:58:23 2022 +0000
Commit:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
CommitDate: Tue Jul 12 00:58:23 2022 +0000
URL:        https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=4a56a7fe

revdep-rebuild.sh: Create its cache dir if it doesn't exist

Bug: https://bugs.gentoo.org/382009

Signed-off-by: Brian Dolbec <dolsen <AT> gentoo.org>

 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

Reply via email to