install-syspkgs 331 B

1234567891011121314
  1. #!/bin/bash
  2. set -e
  3. # no install requested -> exit
  4. [ -z "$1" ] && exit 0 || true
  5. if (which apt-get > /dev/null ); then
  6. sudo apt-get update -qq -y --allow-releaseinfo-change
  7. sudo apt-get install -q --no-install-recommends -y eatmydata
  8. sudo eatmydata apt-get install -q --no-install-recommends -y $*
  9. else
  10. brew install -q $*
  11. fi