From afbbfee8187811335220f7ac0d4153b719b68662 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=9F=E9=85=8C=20=E9=B5=AC=E5=85=84?= Date: Mon, 15 Aug 2022 20:02:04 +0800 Subject: [PATCH] Fixed sources not loading in some cases --- bash/bashrc/rbashrc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bash/bashrc/rbashrc b/bash/bashrc/rbashrc index 953cbe4..c825dea 100644 --- a/bash/bashrc/rbashrc +++ b/bash/bashrc/rbashrc @@ -111,9 +111,10 @@ function rbash_cache { } _RBASH_LOADED= -if [ ! -d "$RBASH_SOURCES" ]; then +mkdir -p "$RBASH_SOURCES" + +if [ ! -f "$RBASH_SOURCES/merged" ]; then _RBASH_MERGE_START=1 - mkdir -p "$RBASH_SOURCES" fi function rbash_load {