add -p flag to mkdir

This commit is contained in:
NRK
2021-05-01 23:58:40 +06:00
parent 9aed499046
commit f9f11699b6

2
sxbm
View File

@ -167,7 +167,7 @@ bm_open(){
[ -z "$1" ] && usage && die "No command given"
[ -d "$DATA_DIR" ] ||
mkdir "$DATA_DIR" ||
mkdir -p "$DATA_DIR" ||
die "Unable to create $DATA_DIR"
case "$1" in