Skip to content

Instantly share code, notes, and snippets.

@rylio
rylio / deploy.sh
Last active May 10, 2017 10:27
Deploy hugo site to flynn
#!/bin/bash
while getopts ":r:b:" opt; do
case $opt in
r) remote=$OPTARG ;;
b) branch=$OPTARG ;;
\?) echo "Invalid option: -$OPTARG" >&2 ;;
esac
done
# set default remote
#!/bin/bash
mkdir test
cd test
env >> test.env
echo "$@" >> test.env