This commit is contained in:
Marc Beninca 2024-06-08 12:37:06 +02:00
parent 571497c5cf
commit 953fb81032
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

7
cd.sh
View file

@ -657,9 +657,10 @@ cd_ls () {
}
cd_mkdir () {
if [ "${1}" ] ; then
echo "${1}"
mkdir --parents "${1}" || exit
cd_mkdir__path="${1}"
if [ "${cd_mkdir__path}" ] ; then
echo "${cd_mkdir__path}"
mkdir --parents "${cd_mkdir__path}" || exit
fi
}