install.sh 404 B

123456789101112131415161718
  1. #!/bin/sh
  2. if [ $# != 2 ]; then
  3. echo "Error: Usage: install.sh [file list] [output (mods) dir]" 1>&2
  4. exit 1
  5. fi
  6. if [ ! -d "$2" ]; then
  7. echo "Error: directory $1 not found or missing permissions" 1>&2
  8. exit 1
  9. fi
  10. if ! command -v "wget" > /dev/null 2>&1; then
  11. echo "Error: installation of 'wget' not found in \$PATH" 1>&2
  12. exit 1
  13. fi
  14. wget -q --show-progress -P "$2" --input-file="$1"