CUR_DIR=`pwd`
INSTALL_DIR="$HOME/.dsted"
NAME_SOURCE="Source" #this is redundant
#UPDATE=true #if set to true it will attempt to grab the latest version and build the update. not going to work on it

echo "This is the Linux install version."
echo "You need to install nodejs and npm for this to work."

#create the install directory
mkdir $INSTALL_DIR

# copy the things
cp -rf $CUR_DIR/$NAME_SOURCE $INSTALL_DIR/

## Go to Build and Start NPM
cd $INSTALL_DIR/$NAME_SOURCE
npm install

CUR_DIR=`pwd`
NAME_SOURCE="Source"
NAME_BUILD="Build"

echo -e "\e[0;31mBuild DSTEd\e[0m"
echo -e "\e[0;31m---\e[0m"

# Create Build Directory
if [ -d "$CUR_DIR/$NAME_BUILD" ]; then
	mkdir $CUR_DIR/$NAME_BUILD
fi

# Move Source to Build Directory
cp -rf $CUR_DIR/$NAME_SOURCE $CUR_DIR/$NAME_BUILD

# Go to Build and Start NPM
cd $CUR_DIR/$NAME_BUILD
npm install
Update Shell-Scrip to original Batch-File
Update Shell-Scrip to original Batch-File
