make sure the rsync updater is always executed from its own dir

This commit is contained in:
Rudolf Polzer 2011-11-17 11:20:17 +01:00
parent 3fcce66692
commit a017259636
2 changed files with 6 additions and 0 deletions

View File

@ -1,5 +1,7 @@
@echo off
cd %~dp0
set options=-Prtzil --executability --delete-after --delete-excluded --stats
if exist Xonotic-low goto xonoticlow

View File

@ -1,5 +1,9 @@
#!/bin/sh
if [ -d "${0%/*}" ]; then
cd "${0%/*}"
fi
if ! which rsync >/dev/null; then
echo >&2 "FATAL: rsync not found, please install the rsync package"
exit 1