Skip to content

Commit

Permalink
Fixing a typo in the calculate_float function and adding a couple of …
Browse files Browse the repository at this point in the history
…messages to the resizing functions, thanks to @Piotr86PL
  • Loading branch information
Sebastian-Roth authored Oct 6, 2022
2 parents af9e624 + 3ee6684 commit f2e2550
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ expandPartition() {
;;
btrfs)
# Based on info from @mstabrin on forums.fogproject.org
dots "Resizing $fstype volume ($part)"
if [[ ! -d /tmp/btrfs ]]; then
mkdir /tmp/btrfs >>/tmp/btfrslog.txt 2>&1
if [[ $? -gt 0 ]]; then
Expand Down Expand Up @@ -646,6 +647,7 @@ shrinkPartition() {
resizePartition "$part" "$sizeextresize" "$imagePath"
echo "Done"
debugPause
dots "Checking $fstype volume ($part)"
e2fsck -fp $part >/tmp/e2fsck.txt 2>&1
case $? in
0)
Expand All @@ -665,6 +667,7 @@ shrinkPartition() {
btrfs)
# Based on info from @mstabrin on forums.fogproject.org
# https://forums.fogproject.org/topic/15159/btrfs-postdownloadscript/3
dots "Shrinking $part partition"
if [[ ! -d /tmp/btrfs ]]; then
mkdir /tmp/btrfs >>/tmp/btfrslog.txt 2>&1
if [[ $? -gt 0 ]]; then
Expand Down Expand Up @@ -2516,5 +2519,5 @@ calculate() {
}
# Calculates information and returns full float
calculate_float() {
echo $(awk 'BEGIN{printf "%f\n"}, '$*'}');
echo $(awk 'BEGIN{printf "%f\n", '$*'}');
}

0 comments on commit f2e2550

Please sign in to comment.