#!/bin/bash NVM="$HOME/.nvm" NVM_VERSION="5.7.0" DEV="$HOME/dev" LIVE="$HOME/live" SWAP="/swapfile" DBSETUP="obrand-admin-server/dbrebuild.sh" PKG_MANAGER=$( command -v yum || command -v apt-get ) || echo "Neither yum nor apt-get found" PKG_DEVICE=$(basename $PKG_MANAGER) echo Copying... cd $DEV/O-Brand/dist cp -ra . $DEV/obrand-admin-server/wwwroot cd $DEV/obrand-admin-server rsync -uav --exclude .git $DEV/obrand-admin-server/ $LIVE