1#!/bin/bash 2 3DEST=$1 4 5if [ ! -d "$DEST" ]; then 6 echo -e "Destination \"$DEST\" is not a directory. Run\n\tnpm deploy -- [destination-directory]" 7 exit 1 8fi 9 10function copy() { 11 echo -n "." 12 cp "$@" 13} 14 15echo -n "Deploying..." 16copy *.png $DEST/ 17copy *.css $DEST/ 18copy index.html $DEST/ 19copy info-view.html $DEST/ 20copy -R build $DEST/ 21copy -R img $DEST/ 22echo "done!" 23 24echo "Deployed to $DEST/." 25