Skip to content

Commit

Permalink
Do not proceed if disk is not big enough
Browse files Browse the repository at this point in the history
  • Loading branch information
Cat5TV committed Jun 21, 2018
1 parent 5a36900 commit cef287a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions nems-build.sh
Expand Up @@ -36,6 +36,11 @@ If you run this program, you will lose everything!
exit
fi

diskfree=$(($(stat -f --format="%a*%S" .)))
if (( "$diskfree" < "8589934592" )); then
echo You do not have enough free space to build. Did you resize the root fs?
exit
fi

if [[ ! -d /var/log/nems ]]; then
mkdir /var/log/nems
Expand Down

0 comments on commit cef287a

Please sign in to comment.