#!/usr/bin/sh

# check if script's directory name is `proto`
if [ $(basename $(dirname $(realpath $0))) != "proto" ]; then
    echo "This is not a proto directory"
    exit 1
fi

# cd to current dir
cd $(dirname $(realpath $0))

# update
git pull