Skip to content

Commit

Permalink
Added a wrapper around the free space check so that it won't fail
Browse files Browse the repository at this point in the history
fatally if df fails
  • Loading branch information
Dominik Russenberger committed May 14, 2011
1 parent 314a349 commit 050d432
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions makeself-header.sh
Original file line number Diff line number Diff line change
Expand Up @@ -405,13 +405,15 @@ if test "\$keep" = n; then
fi
leftspace=\`MS_diskspace \$tmpdir\`
if test "\$leftspace" -lt $USIZE; then
echo
echo "Not enough space left in "\`dirname \$tmpdir\`" (\$leftspace KB) to decompress \$0 ($USIZE KB)" >&2
if test "\$keep" = n; then
echo "Consider setting TMPDIR to a directory with more free space."
fi
eval \$finish; exit 1
if test -n "\$leftspace"; then
if test "\$leftspace" -lt $USIZE; then
echo
echo "Not enough space left in "\`dirname \$tmpdir\`" (\$leftspace KB) to decompress \$0 ($USIZE KB)" >&2
if test "\$keep" = n; then
echo "Consider setting TMPDIR to a directory with more free space."
fi
eval \$finish; exit 1
fi
fi
for s in \$filesizes
Expand Down

0 comments on commit 050d432

Please sign in to comment.