summary refs log tree commit diff
path: root/mp.sh
diff options
context:
space:
mode:
authorDruid520 <r.ustydruid520@proton.me>2026-08-12 10:27:10 -0700
committerDruid520 <r.ustydruid520@proton.me>2026-08-12 10:27:10 -0700
commit40c511fa30c73f4d03dfa5ff53142df6bc3bc8db (patch)
tree122f60cd9328313377d8f9ed37ac0fb8dcc2b17a /mp.sh
parent3849ba50130ad0914597798780b0983825e2e7cf (diff)
MOD: fix up the update scripting
Diffstat (limited to 'mp.sh')
-rwxr-xr-xmp.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/mp.sh b/mp.sh index b3f35a0..01bab4d 100755 --- a/mp.sh +++ b/mp.sh
@@ -112,7 +112,7 @@ mp_upd() {
112 cd "$PORTS_DIR" || die "missing $PORTS_DIR." 112 cd "$PORTS_DIR" || die "missing $PORTS_DIR."
113 git pull || die "failed git pull on $PORTS_DIR." 113 git pull || die "failed git pull on $PORTS_DIR."
114 114
115 if [ "$1" = "*" ] || [ -z "$1" ]; then 115 if [ "$1" = "_" ]; then
116 if [ ! -f "$INSTALLED" ]; then 116 if [ ! -f "$INSTALLED" ]; then
117 die "no pkgs installed." 117 die "no pkgs installed."
118 fi 118 fi
@@ -132,14 +132,14 @@ mp_init
132 132
133case $# in 133case $# in
134 0|1) 134 0|1)
135 die "usage: mp <a|d|u> <pkg>." 135 die "usage: mp <a|d|u> <pkg|_>."
136 ;; 136 ;;
137 *) 137 *)
138 case $1 in 138 case $1 in
139 a) (mp_add "$2") ;; 139 a) (mp_add "$2") ;;
140 d) (mp_del "$2") ;; 140 d) (mp_del "$2") ;;
141 u) (mp_upd "$2") ;; 141 u) (mp_upd "$2") ;;
142 *) die "usage: mp <a|d|u> <pkg>." ;; 142 *) die "usage: mp <a|d|u> <pkg|_>." ;;
143 esac 143 esac
144 ;; 144 ;;
145esac 145esac