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:
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"