Add a deprecation warning to ensureDir

This commit is contained in:
Eelco Dolstra 2014-06-30 14:57:12 +02:00
parent 40f7b0f9df
commit b3b9c51b34

View file

@ -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