Create source dir only if not exist
This commit is contained in:
parent
5f7f927d24
commit
d0b06f42b9
@ -24,8 +24,7 @@ if [ -f ~/.rbashenv ]; then
|
|||||||
. ~/.rbashenv
|
. ~/.rbashenv
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p "$RBASH_SOURCES"
|
# The merged sources
|
||||||
|
|
||||||
RBASH_MERGED="$RBASH_SOURCES/merged"
|
RBASH_MERGED="$RBASH_SOURCES/merged"
|
||||||
|
|
||||||
# don't put duplicate lines or lines starting with space in the history.
|
# don't put duplicate lines or lines starting with space in the history.
|
||||||
@ -114,6 +113,7 @@ function rbash_cache {
|
|||||||
_RBASH_LOADED=
|
_RBASH_LOADED=
|
||||||
if [ ! -d "$RBASH_SOURCES" ]; then
|
if [ ! -d "$RBASH_SOURCES" ]; then
|
||||||
_RBASH_MERGE_START=1
|
_RBASH_MERGE_START=1
|
||||||
|
mkdir -p "$RBASH_SOURCES"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
function rbash_load {
|
function rbash_load {
|
||||||
|
Loading…
Reference in New Issue
Block a user