dotfiles/distros/alpine/pm.sh

19 lines
290 B
Bash
Raw Normal View History

2023-10-14 22:38:11 +02:00
cmd="apk"
while getopts "icru" opt; do
case $opt in
i)
cmd="$cmd add"
;;
u)
cmd="$cmd add"
r)
cmd="$cmd remove"
;;
c)
cmd="$cmd info -q"
;;
esac
done
shift $((OPTIND-1))
$cmd $@