Megatest

checkspace.sh at [b88e2e296b]
Login

File example/tests/checkspace/checkspace.sh artifact 82b23e5995 part of check-in b88e2e296b


#!/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