mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-09-11 09:54:36 +00:00
fix wrong dev/null
This commit is contained in:
parent
13506d92fb
commit
7a963a76b7
1 changed files with 1 additions and 1 deletions
|
@ -442,7 +442,7 @@ fi
|
||||||
|
|
||||||
msg_info "Decompressing $FILE with progress${CL}\n"
|
msg_info "Decompressing $FILE with progress${CL}\n"
|
||||||
FILE_IMG="${FILE%.xz}"
|
FILE_IMG="${FILE%.xz}"
|
||||||
SIZE=$(xz --robot -l "$FILE" &>/dev/null | awk -F '\t' '/^totals/ { print $5 }') &>/dev/null
|
SIZE=$(xz --robot -l "$FILE" | awk -F '\t' '/^totals/ { print $5 }') &>/dev/null
|
||||||
xz -dc "$FILE" | pv -s "$SIZE" -N "Extracting" >"$FILE_IMG"
|
xz -dc "$FILE" | pv -s "$SIZE" -N "Extracting" >"$FILE_IMG"
|
||||||
msg_ok "Decompressed to ${CL}${BL}${FILE%.xz}${CL}"
|
msg_ok "Decompressed to ${CL}${BL}${FILE%.xz}${CL}"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue