dotfiles/distros/alpine/pm.sh
2023-08-23 06:14:56 +02:00

19 lines
No EOL
290 B
Bash

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 $@