Skip to content

Commit

Permalink
Fix awk
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberplant committed Sep 8, 2023
1 parent 1646027 commit 84791d4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -773,12 +773,13 @@ if [ -n "$1" ]; then
PART_CRYPT[$i]="$(echo "$PART_LINE" | awk '{print $5}')"
MOUNT_POINT_SIZE[$i]=${PART_SIZE[$i]}

EXTRAS="$(echo "$PART_LINE" | awk '{print $6}')"
# Print in awk columns from 6 until the end.
EXTRAS="$(echo "$PART_LINE" | awk '{for(i=6;i<=NF;++i)print $i}')"

for extra in $EXTRAS; do
echo "Additional partition config: $extra" | debugoutput
echo "Additional partition config: $extra" >>/tmp/additionals.txt 2>&1
eval "$6"
eval "$extra"
PART_EXTRAS[$i]="${PART_EXTRAS[$i]} $extra"
done

Expand Down

0 comments on commit 84791d4

Please sign in to comment.