Browse Source

ynh_die if no free space

pull/127/head
Maniack Crudelis 8 years ago
committed by GitHub
parent
commit
d76dc40151
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      scripts/_common.sh

2
scripts/_common.sh

@ -376,6 +376,8 @@ ynh_smart_mktemp () {
local tmpdir=/ local tmpdir=/
elif is_there_enough_space /home; then elif is_there_enough_space /home; then
local tmpdir=/home local tmpdir=/home
else
ynh_die "Insufficient free space to continue..."
fi fi
echo "$(sudo mktemp --directory --tmpdir="$tmpdir")" echo "$(sudo mktemp --directory --tmpdir="$tmpdir")"

Loading…
Cancel
Save