xpm

x package manager, a uniform interface to various POSIX package managers
git clone git://src.gearsix.net/xpm
Log | Files | Refs | Atom | README

commit a175ac605a6db901790d3aaa11b1ee82b639139b
parent 5076f65df7407deb86abaabcb7320aef3bd8bccf
Author: gearsix <gearsix@tuta.io>
Date:   Thu, 17 Mar 2022 17:21:33 +0000

added XPM_NOTRACK option, skips the installed_* functions

Diffstat:
Mxpm.sh | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/xpm.sh b/xpm.sh @@ -4,6 +4,8 @@ xpm="" INSTALLED=~/.local/share/xpm/installed.txt installed_add() { + if [ $XPM_NOTRACK ]; then return; fi + if [ ! -d $(dirname $INSTALLED) ]; then mkdir -p $(dirname $INSTALLED) fi @@ -16,6 +18,8 @@ installed_add() { } installed_rm() { + if [ $XPM_NOTRACK ]; then return; fi + for pkg in $@; do if [ "$(grep $pkg $INSTALLED)" != "" ]; then sed -i "/$pkg/d" "$INSTALLED"