diff options
author | Ramón M. Gómez <ramongomez@us.es> | 2021-07-06 11:55:45 +0200 |
---|---|---|
committer | Ramón M. Gómez <ramongomez@us.es> | 2021-07-06 11:57:42 +0200 |
commit | 142d1c8a095c1b45f556850c21214ac6e4bb7971 (patch) | |
tree | 7ce1cbb98f757be2faacb911371c71d8bd033f92 /client/engine/Image.lib | |
parent | 87b8c4698846f84e4bc283efc7ec49243ce8a904 (diff) |
#1048: Avoid Awk 5.x warning when escaping quotes.
Diffstat (limited to 'client/engine/Image.lib')
-rwxr-xr-x | client/engine/Image.lib | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/client/engine/Image.lib b/client/engine/Image.lib index a2465a12..941deb91 100755 --- a/client/engine/Image.lib +++ b/client/engine/Image.lib @@ -950,9 +950,9 @@ then if `echo $PARTCLONEINFO | grep size > /dev/null` then TOOLS=PARTCLONE - FS=$(echo $PARTCLONEINFO | awk '{gsub(/\: /,"\n"); print toupper($8);}') + FS=$(echo $PARTCLONEINFO | awk '{gsub(/: /,"\n"); print toupper($8);}') if [[ "$FS" == "HFS" || "$FS" == "HFSPLUS" || "$FS" == "FAT32" ]]; then - FSPLUS=$(echo $PARTCLONEINFO | awk '{gsub(/\: /,"\n"); print toupper($9);}') + FSPLUS=$(echo $PARTCLONEINFO | awk '{gsub(/: /,"\n"); print toupper($9);}') echo $PARTCLONEINFO | grep GB > /dev/null && SIZEFACTOR=1000000 || SIZEFACTOR=1024 if [ "$FSPLUS" == "PLUS" ]; then FS=$FS$FSPLUS @@ -962,7 +962,7 @@ then fi else echo $PARTCLONEINFO | grep GB > /dev/null && SIZEFACTOR=1000000 || SIZEFACTOR=1024 - SIZE=$(echo $PARTCLONEINFO | awk -v FACTOR=$SIZEFACTOR '{gsub(/\: /,"\n"); printf "%d\n", $11*FACTOR;}') + SIZE=$(echo $PARTCLONEINFO | awk -v FACTOR=$SIZEFACTOR '{gsub(/: /,"\n"); printf "%d\n", $11*FACTOR;}') fi IMGDETECT="TRUE" fi |