Create data directory recursively
This is mainly for Termux where apparently Documents doesn't exist by default either.
This commit is contained in:
2
cv
2
cv
@@ -20,7 +20,7 @@ data="$HOME/Documents/cv"
|
|||||||
|
|
||||||
if [ ! -d "$data" ]
|
if [ ! -d "$data" ]
|
||||||
then
|
then
|
||||||
ex "mkdir $data"
|
ex "mkdir -p $data"
|
||||||
# This is just for migration. Remove afterwards.
|
# This is just for migration. Remove afterwards.
|
||||||
ex "mv /tmp/cv/* $data/ -v"
|
ex "mv /tmp/cv/* $data/ -v"
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user