2023-08-23 06:14:56 +02:00
|
|
|
cmd="apk"
|
|
|
|
while getopts "icru" opt; do
|
|
|
|
case $opt in
|
|
|
|
i)
|
|
|
|
cmd="$cmd add"
|
|
|
|
;;
|
|
|
|
u)
|
|
|
|
cmd="$cmd add"
|
2023-08-23 06:50:19 +02:00
|
|
|
;;
|
2023-08-23 06:14:56 +02:00
|
|
|
r)
|
2023-08-23 06:50:19 +02:00
|
|
|
cmd="$cmd del"
|
2023-08-23 06:14:56 +02:00
|
|
|
;;
|
|
|
|
c)
|
|
|
|
cmd="$cmd info -q"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
shift $((OPTIND-1))
|
|
|
|
|
|
|
|
$cmd $@
|