Skip to content

Commit 1a78455

Browse files
authored
Merge pull request #377 from github/enterprise-3.9-backport-376-fix-host-check-avail-space
Backport 376 for 3.9: Update "available_space" unit in ghe-host-check
2 parents 9655462 + b034dc0 commit 1a78455

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)