Fix typo and add default output dir

This commit is contained in:
Case Duckworth 2021-11-21 20:15:44 +00:00
parent 669279f7f2
commit 00b0874309
1 changed files with 3 additions and 1 deletions

View File

@ -3,13 +3,15 @@
# usage: publish.sh -s SITE_DIR -k SCRIPT_DIR -o OUTPUT_DIR
# defaults
OUTPUT_DIR=./public
while getopts s:k:o: opt; do
case "$opt" in
s) SITE_DIR="$OPTARG" ;;
k) SCRIPT_DIR="$OPTARG" ;;
o) OUTPUT_DIR="$OPTARG" ;;
*) exit 2 ;;
;;
esac
done
shift $((OPTIND - 1))