mkdumprd: remove an awk call in get_fs_size
By using `df --output=avail`, the awk call can be dropped. Signed-off-by: Kairui Song <kasong@redhat.com> Acked-by: Philipp Rudo <prudo@redhat.com>
This commit is contained in:
parent
d6449e7293
commit
c486b1fa30
2
mkdumprd
2
mkdumprd
@ -132,7 +132,7 @@ mkdir_save_path_ssh()
|
|||||||
#Function: get_fs_size
|
#Function: get_fs_size
|
||||||
#$1=dump target
|
#$1=dump target
|
||||||
get_fs_size() {
|
get_fs_size() {
|
||||||
df -P "$(get_mntpoint_from_target "$1")/$SAVE_PATH"|tail -1|awk '{print $4}'
|
df --output=avail "$(get_mntpoint_from_target "$1")/$SAVE_PATH" | tail -1
|
||||||
}
|
}
|
||||||
|
|
||||||
#Function: get_raw_size
|
#Function: get_raw_size
|
||||||
|
Loading…
Reference in New Issue
Block a user