nix-env 181 B

1234567891011121314
  1. #!/bin/sh
  2. if test "$1" = "-i"
  3. then
  4. apt-get -y install $2
  5. elif test "$1" = "-u"
  6. then
  7. apt-get upgrade
  8. elif test "$1" = "-e"
  9. then
  10. apt-get purge $2
  11. else
  12. echo E: Invalid operation $1
  13. fi