22 lines
No EOL
319 B
Bash
22 lines
No EOL
319 B
Bash
#!/bin/sh
|
|
|
|
cmd="pacman --noconfirm"
|
|
while getopts "icru" opt; do
|
|
case $opt in
|
|
i)
|
|
cmd="$cmd -S"
|
|
;;
|
|
u)
|
|
cmd="$cmd -Syyu"
|
|
;;
|
|
r)
|
|
cmd="$cmd -R"
|
|
;;
|
|
c)
|
|
cmd="$cmd -Q"
|
|
;;
|
|
esac
|
|
done
|
|
shift $((OPTIND-1))
|
|
|
|
$cmd $@ |