• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
10echo "Deploying..."
11
12cp *.jpg $DEST/
13cp *.png $DEST/
14cp *.css $DEST/
15cp index.html $DEST/
16cp -R build $DEST/
17
18echo "Deployed to $DEST/."
19