Skip to content

Commit

Permalink
Another exit when disk space can't be determined (eth-educators#1602)
Browse files Browse the repository at this point in the history
  • Loading branch information
yorickdowne authored Nov 4, 2023
1 parent d21920e commit be4194b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ethd
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ determine_sudo() {
echo "The Docker daemon is not running. Please check Docker installation."
echo "\"sudo systemctl status docker\" and \"sudo journalctl -fu docker\" will be helpful."
echo "Aborting."
exit 1
exit 130
fi
fi
set -e
Expand Down Expand Up @@ -993,6 +993,7 @@ update() {
if ! [[ "${__free_space}" =~ $re ]] ; then
echo "Unable to determine free disk space. This is likely a bug."
echo "df reports $(df -P "${__docker_dir}") and __free_space is ${__free_space}"
exit 130
elif [ "${__free_space}" -lt 1048576 ]; then
echo "You have less than 1 GiB of space left on ${__docker_dir}."
echo "Aborting, as an update is not safe."
Expand Down

0 comments on commit be4194b

Please sign in to comment.