Remove helper ynh_mkdir_tmp

Le helper `ynh_mkdir_tmp` est inutile. Il existe la commande `mktemp -d` pour créer des dossiers temporaires.
This commit is contained in:
Maniack Crudelis 2016-11-29 14:00:15 +01:00 committed by Laurent Peuch
parent 1ecf5481cf
commit 28ec1dec8f

View file

@ -62,15 +62,3 @@ ynh_bind_or_cp() {
echo "This helper is deprecated, you should use ynh_backup instead" >&2
ynh_backup "$1" "$2" 1 "$NO_ROOT"
}
# Create a directory under /tmp
#
# usage: ynh_mkdir_tmp
# | ret: the created directory path
ynh_mkdir_tmp() {
TMPDIR="/tmp/$(ynh_string_random 6)"
while [ -d $TMPDIR ]; do
TMPDIR="/tmp/$(ynh_string_random 6)"
done
mkdir -p "$TMPDIR" && echo "$TMPDIR"
}