Skip to content

Commit b996dab

Browse files
chuckp22krayon
andauthored
Update bin/ghe-host-check
More formatting for easier read. Co-authored-by: Krayon <[email protected]>
1 parent e082fcc commit b996dab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bin/ghe-host-check

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,8 @@ if [[ "$CALLING_SCRIPT" == "ghe-backup" ]]; then
159159
#Display dir requirements for repositories and mysql
160160
echo "Checking host for sufficient space for a backup..." 1>&2
161161
available_space=$(df -B 1k $GHE_DATA_DIR | awk 'END{printf "%.0f", $4 * 1024}')
162-
printf "Available space: %d MB. We recommend allocating at least 5x the amount of storage allocated to the primary GitHub appliance for historical snapshots and growth over time.\n" "$((available_space / 1024 ** 2))" 1>&2
162+
echo -e "Available space: $((available_space / (1024 ** 2))) MB\n" 1>&2
163+
echo -e "We recommend allocating at least 5x the amount of storage allocated to the primary GitHub appliance for historical snapshots and growth over time.\n" 1>&2
163164

164165
repos_disk_size=$(transfer_size repositories /tmp)
165166
pages_disk_size=$(transfer_size pages /tmp)

0 commit comments

Comments
 (0)