Megatest

Check-in [467b05f804]
Login
Overview
Comment:Fixed problems in the example script
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | development
Files: files | file ages | folders
SHA1: 467b05f8042d3ed50885a3e00620ccf3457c3db0
User & Date: mrwellan on 2013-03-25 11:00:00
Other Links: branch diff | manifest | tags
Context
2013-03-25
11:01
Added missing logpro file. Updates to training doc check-in: 1ba6a4c102 user: mrwellan tags: development
11:00
Fixed problems in the example script check-in: 467b05f804 user: mrwellan tags: development
10:19
Minor clean up to the manual intro section check-in: 464391157a user: mrwellan tags: development
Changes

Modified example/tests/checkspace/checkspace.sh from [d63bf48441] to [82b23e5995].

1
2
3
4
5
6
7
8
9
10
#!/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

<
<
|
|
|


|

1


2
3
4
5
6
7
8
#!/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