Advertisement
Guest User

Untitled

a guest
Feb 20th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. case $1 in
  4. install|reinstall)
  5. options=S
  6. ;;
  7. remove)
  8. options=Rc
  9. ;;
  10. search)
  11. options=Ss
  12. ;;
  13. list)
  14. options=Q
  15. ;;
  16. update|upgrade)
  17. options=Syu
  18. ;;
  19. clean|autoremove|autoclean)
  20. options=Qdtq
  21. ;;
  22. download)
  23. options=Sw
  24. ;;
  25. *)
  26. echo "unknow operator $1" >&2
  27. exit 1
  28. ;;
  29. esac
  30.  
  31. shift 1
  32. exec pacman "-${options}" $@
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement