Sophie

Sophie

distrib > Mageia > 6 > armv7hl > media > core-updates-src > by-pkgid > 545a48d89ad6ad4ecabd7a5b31cc1893 > files > 5

ioquake3-1.36-12.20170428.1.1.mga6.src.rpm

#!/bin/bash

set -e

if [ ! -f $HOME/.q3a/baseq3/pak8.pk3 ]; then
  set +e
  /usr/share/autodl/AutoDL.py /usr/share/ioquake3/ioquake3-update.autodlrc
  STATUS=$?
  set -e
  # status 2 means download was ok, but the user choice not to start the game
  if [ "$STATUS" = "0" -o "$STATUS" = "2" ]; then
    cd ~/.q3a
    sh linuxq3apoint-1.32b-3.x86.run  --tar xf -C . --exclude setup.*
    rm linuxq3apoint-1.32b-3.x86.run
  fi
else
  echo "You already have quake 3 1.32b update!" ;
fi