Artifact d63bf484412a387ee9fdd01a87df01c0feaa85af:
- Executable file example/tests/checkspace/checkspace.sh — part of check-in [e1b3da08cb] at 2013-03-25 09:43:06 on branch development — Added example area with one test and added example to training (user: mrwellan, size: 253) [annotate] [blame] [check-ins using]
#!/bin/bash -e diskpath=$1 spacereq=$2 freespace=`df -k $diskpath | grep $diskpath | awk '{print $4}'` if [[ $freespace -lt $spacereq ]];then echo "ERROR: insufficient space on $diskpath" exit 1 else echo "There is adequate space on $diskpath" fi