From 90929c626c45f9b57ce27150158b4e209ebb6705 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 16 Jan 2017 02:44:50 +0300 Subject: code style --- %HOME%/.bash_utils/os.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to '%HOME%') diff --git a/%HOME%/.bash_utils/os.sh b/%HOME%/.bash_utils/os.sh index 5f4f181..640c693 100644 --- a/%HOME%/.bash_utils/os.sh +++ b/%HOME%/.bash_utils/os.sh @@ -43,7 +43,9 @@ list_packages_cygwin() ( list_initial_packages_ubuntu() ( set -o errexit -o nounset -o pipefail + local -r initial_status='/var/log/installer/initial-status.gz' + gzip --decompress --stdout -- "$initial_status" \ | sed --quiet -- 's/^Package: //p' \ | sort \ @@ -68,12 +70,15 @@ list_packages_ubuntu() ( list_initial_packages_arch() ( set -o errexit -o nounset -o pipefail + local -ra groups=(base base-devel) + pacman -Q --groups -q -- ${groups[@]+"${groups[@]}"} | sort ) list_manually_installed_packages_arch() ( set -o errexit -o nounset -o pipefail + comm -23 <( pacman -Q --explicit -q | sort ) \ <( list_initial_packages_arch ) ) -- cgit v1.2.3