dotfiles/distros/alpine/pm.sh
2023-10-14 22:38:11 +02:00

20 lines
No EOL
298 B
Bash

cmd="apk"
while getopts "icru" opt; do
case $opt in
i)
cmd="$cmd add"
;;
u)
cmd="$cmd add"
;;
r)
cmd="$cmd del"
;;
c)
cmd="$cmd info -q"
;;
esac
done
shift $((OPTIND-1))
$cmd $@