projectName=$1
projectPath=/var/www/html/$projectName

if [ ! -f $projectPath/index.html ] ||
	[ ! -f $projectPath/check.php ] ||
	[ ! -f $projectPath/StyleSheet.css ] ||
	[ ! -d $projectPath/thirdparty/ ]; then
	echo "There is a problem with the installation. Run clean.sh and then try install.sh again.";
fi


#!/bin/bash

if [ $# -eq 0 ]; then
	echo "No arguments supplied."
	echo "Usage: $ verify_installation.sh <projectName>"
	exit 1
fi

projectName=$1
projectPath=/var/www/html/$projectName

if [ ! -f $projectPath/index.html ] ||
	[ ! -f $projectPath/login.html ] ||
	[ ! -f $projectPath/register.html ] ||
	[ ! -f $projectPath/check.php ] ||
	[ ! -f $projectPath/register.php ] ||
	[ ! -f $projectPath/login_style.css ] ||
	[ ! -f $projectPath/StyleSheet.css ] ||
	[ ! -d $projectPath/thirdparty/ ]; then
	echo "There is a problem with the installation. Run clean.sh and then try install.sh again.";
	exit
fi

echo "Everything seems to be OK.";


Improve usability of test script
Improve usability of test script
