From 52ea3129dbe93008896e5ddf5810bf2ca39cd842 Mon Sep 17 00:00:00 2001 From: Slava Date: Fri, 22 Nov 2024 15:08:21 +0300 Subject: [PATCH] =?UTF-8?q?ver=20=D0=B2=D1=80=D0=BE=D0=B4=D0=B5=20=D1=80?= =?UTF-8?q?=D0=B0=D0=B1=D0=BE=D1=82=D0=B0=D0=B5=D1=82,=20=D0=BA=D0=BE?= =?UTF-8?q?=D0=BF=D0=B8=D1=80=D1=83=D0=B5=D1=82=20=D0=BD=D0=B0=D0=B7=D0=B2?= =?UTF-8?q?=D0=B0=D0=BD=D0=B8=D0=B5=20=D0=BF=D0=B0=D0=BA=D0=B5=D1=82=D0=B0?= =?UTF-8?q?=20=D0=B8=20=D0=B2=D0=B5=D1=80=D1=81=D0=B8=D1=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ver | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ver b/ver index 2c46f58..1bf237e 100755 --- a/ver +++ b/ver @@ -1,3 +1,4 @@ #!/bin/bash -apt-cache policy $1 | awk 'NR==5' -apt-cache policy $1 | awk 'NR==5' | xclip -selection clipboard +version=$(apt-cache show $1 | grep Version | awk '{print $2}') +echo $1 $version +echo $1 $version | xclip -select clipboard