u-purge 821 B

123456789101112131415161718192021
  1. #!/bin/sh
  2. # This file is part of UPM. 
  3. # Copyright (c) 2016 ali abdul ghani <blade.vp2020@gmail.com>
  4. # UPM is free software: you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation, either version 3 of the License, or
  7. # (at your option) any later version. 
  8. # UPM is distributed in the hope that it will be useful,
  9. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. # GNU General Public License for more details.
  12.  
  13. # You should have received a copy of the GNU General Public License
  14. # along with UPM. If not, see <http://www.gnu.org/licenses/>.
  15. if test $# = 0
  16. then
  17. echo E: Invalid operation
  18. else
  19. sudo apt-get purge $1
  20. fi