diff options
author | Brian Dolbec <dolsen@gentoo.org> | 2022-07-11 17:58:23 -0700 |
---|---|---|
committer | Brian Dolbec <dolsen@gentoo.org> | 2022-07-11 17:58:23 -0700 |
commit | 4a56a7feff4fe8ed427cddff6e6b2719f0fe58c3 (patch) | |
tree | 52dc1387ec68061b5d84dd1becf8b8170c8d84a8 | |
parent | eclean/pkgindex.py: Fix typo in function call (diff) | |
download | gentoolkit-4a56a7feff4fe8ed427cddff6e6b2719f0fe58c3.tar.gz gentoolkit-4a56a7feff4fe8ed427cddff6e6b2719f0fe58c3.tar.bz2 gentoolkit-4a56a7feff4fe8ed427cddff6e6b2719f0fe58c3.zip |
revdep-rebuild.sh: Create its cache dir if it doesn't exist
Bug: https://bugs.gentoo.org/382009
Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
-rwxr-xr-x | bin/revdep-rebuild.sh | 3 |
1 files changed, 2 insertions, 1 deletions
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 |