pushd qcsrc > /dev/null
if [ ! -d client -o ! -d common -o ! -d dpdefs -o ! -d menu -o ! -d server -o ! -d warpzonelib ]; then
echo "this doesnt look like a xonotic source tree, aborting"
pushd qcsrc > /dev/null
if [ ! -d client -o ! -d common -o ! -d dpdefs -o ! -d menu -o ! -d server -o ! -d warpzonelib ]; then
echo "this doesnt look like a xonotic source tree, aborting"
echo "not a git directory, continuing without rebase"
else
echo -n "resetting git state and updating ... "
echo "not a git directory, continuing without rebase"
else
echo -n "resetting git state and updating ... "