Megatest

install.sh at [39f84a3f86]
Login

File mkdeploy/tests/helpers/install.sh artifact dc233ea2bc part of check-in 39f84a3f86


#!/bin/bash -e
freespace=`df -k /$DIRECTORY | grep $DIRECTORY | awk '{print $4}'`
if [[ $freespace -lt $REQUIRED ]];then
  echo "ERROR: insufficient space on /$DIRECTORY"
  exit 1
else
  echo "There is adequate space on /$DIRECTORY"
fi