diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/verify-installed | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/verify-installed b/scripts/verify-installed index 908eb93..7fd7811 100755 --- a/scripts/verify-installed +++ b/scripts/verify-installed @@ -17,9 +17,9 @@ package=$1 source /etc/os-release if [[ "$ID" = "centos" ]]; then - yum list installed | grep ${package} + yum list installed | grep ${package} | sed -n ':a;N;${s/\n/;/g;p};ba' exit else - dpkg -l ${package} |grep ii | grep ${package} + dpkg -l ${package} |grep ii | grep ${package} | sed -n ':a;N;${s/\n/;/g;p};ba' fi |