mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
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:
parent
1ecf5481cf
commit
28ec1dec8f
1 changed files with 0 additions and 12 deletions
|
@ -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"
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue