Skip to content

Commit a837722

Browse files
committed
Report tar version in it2ul
1 parent 5a3795c commit a837722

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

utilities/it2ul

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,18 @@ function print_st() {
6868
fi
6969
}
7070

71+
function b64_encode() {
72+
if [[ "$IT2DL_BASE64_VERSION" =~ GNU ]]; then
73+
# Disable line wrap
74+
base64 -w0
75+
else
76+
base64
77+
fi
78+
}
79+
7180
function send_request_for_upload() {
7281
print_osc
73-
printf '1337;RequestUpload=format=tgz' ""
82+
printf '1337;RequestUpload=format=tgz;version=%s' "$(tar --version | head -1 | b64_encode)"
7483
print_st
7584
}
7685

0 commit comments

Comments
 (0)