#!/bin/bash
# Fishpoll's example file: git hook for updating a specific folder remotely

# On the remote server where the $FOLDER is hosted:

PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin"
FOLDER="/srv/http/www.example.com/workdir"

if [ -d "${FOLDER}" ]; then
    cd "${FOLDER}"
else
    echo "Unable to access theme directory. Failing. \n"
    exit 1
fi

# git pull

# Where the GIT repository is hosted:

fishpoke server-name fishpoll_file_sample
