Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- case $1 in
- install|reinstall)
- options=S
- ;;
- remove)
- options=Rc
- ;;
- search)
- options=Ss
- ;;
- list)
- options=Q
- ;;
- update|upgrade)
- options=Syu
- ;;
- clean|autoremove|autoclean)
- options=Qdtq
- ;;
- download)
- options=Sw
- ;;
- *)
- echo "unknow operator $1" >&2
- exit 1
- ;;
- esac
- shift 1
- exec pacman "-${options}" $@
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement