--- revdep-rebuild.original 2011-09-06 13:41:19.000000000 +0700 +++ revdep-rebuild 2011-09-06 13:42:01.000000000 +0700 @@ -545,7 +545,9 @@ elif [[ -d $1 ]]; then cd "$1" else - die 1 "Unable to find a satisfactory location for temporary files ($1)" + if ! mkdir -p $1; then + die 1 "Unable to find a satisfactory location for temporary files ($1)" + fi fi [[ $VERBOSE ]] && einfo "Temporary cache files are located in $PWD" setup_rm