u-install~ 813 B

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