[U] scoop: Use pkgs_h instead of custom sed

This commit is contained in:
Hykilpikonna 2023-02-11 23:14:29 -05:00 committed by GitHub
parent 928dfd713c
commit 3834122a37
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2008,8 +2008,7 @@ get_packages() {
fi
# scoop list adds a few extra lines to be fancy, an easy fix is to just remove the first 4 lines. I dont know a better way to do this.
scooplist() { scoop list | sed '1,4d'; }
has scoop && tot scooplist
has scoop && pkgs_h=4 tot scoop list
# Count chocolatey packages.
# [[ -d /c/ProgramData/chocolatey/lib ]] && \