Artifact 82b23e59956da9d0fd64b098286aae6c5e13535c:
- Executable file example/tests/checkspace/checkspace.sh — part of check-in [467b05f804] at 2013-03-25 11:00:00 on branch development — Fixed problems in the example script (user: mrwellan, size: 233) [annotate] [blame] [check-ins using] [more...]
#!/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