From ee5a42eaed64957d8b1319dd4a821aa75793c1cd Mon Sep 17 00:00:00 2001 From: Maniack Crudelis Date: Tue, 29 Nov 2016 14:00:15 +0100 Subject: [PATCH] Remove helper ynh_mkdir_tmp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Le helper `ynh_mkdir_tmp` est inutile. Il existe la commande `mktemp -d` pour créer des dossiers temporaires. --- data/helpers.d/filesystem | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/data/helpers.d/filesystem b/data/helpers.d/filesystem index 8a2bd9aff..41b570ad1 100644 --- a/data/helpers.d/filesystem +++ b/data/helpers.d/filesystem @@ -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" -}