#!/bin/sh # Fetch cnf in build and export ssh config if [ -z "$SSH_ORIGINAL_COMMAND" ]; then echo "Pull Laminar config" cd "$(dirname "$(readlink -f "$0")")" git fetch --prune --force git reset --hard origin/master echo "Deploy ssh configuration" cp ssh/config ~/.ssh/config cp ssh/authorized_keys ~/.ssh/authorized_keys else echo "Laminar queue: $SSH_ORIGINAL_COMMAND" laminarc queue "$SSH_ORIGINAL_COMMAND" fi