Skip to content

Commit b034dc0

Browse files
chuckp22hubot
authored andcommitted
Merge pull request #376 from github/fix-host-check-avail-space
Update "available_space" unit in ghe-host-check
1 parent 9655462 commit b034dc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/ghe-host-check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ actions: $actions_disk_size MB
186186
mssql: $mssql_disk_size MB
187187
DATA_TRANSFER_SIZE
188188

189-
if [[ $available_space -lt $min_disk_req ]]; then
189+
if [[ $((available_space / (1024 * 1024))) -lt $min_disk_req ]]; then
190190
echo "There is not enough disk space for the backup. Please allocate more space and continue." 1>&2
191191
exit 1
192192
fi

0 commit comments

Comments
 (0)