[U] scoop: Use pkgs_h instead of custom sed
This commit is contained in:
@@ -2008,8 +2008,7 @@ get_packages() {
|
|||||||
fi
|
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.
|
# 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 && pkgs_h=4 tot scoop list
|
||||||
has scoop && tot scooplist
|
|
||||||
|
|
||||||
# Count chocolatey packages.
|
# Count chocolatey packages.
|
||||||
# [[ -d /c/ProgramData/chocolatey/lib ]] && \
|
# [[ -d /c/ProgramData/chocolatey/lib ]] && \
|
||||||
|
|||||||
Reference in New Issue
Block a user