Add a deprecation warning to ensureDir
This commit is contained in:
parent
40f7b0f9df
commit
b3b9c51b34
1 changed files with 1 additions and 0 deletions
|
@ -120,6 +120,7 @@ fi
|
|||
|
||||
# Ensure that the given directories exists.
|
||||
ensureDir() {
|
||||
echo "warning: ‘ensureDir’ is deprecated; use ‘mkdir’ instead" >&2
|
||||
local dir
|
||||
for dir in "$@"; do
|
||||
if ! [ -x "$dir" ]; then mkdir -p "$dir"; fi
|
||||
|
|
Loading…
Reference in a new issue