Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Lokesh-Carbonix committed Nov 20, 2023
1 parent b45e829 commit 144d3d3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Tools/scripts/cygwin_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,20 @@ $GPP_COMPILER -print-sysroot
SYS_ROOT=$($GPP_COMPILER -print-sysroot)
echo "SYS_ROOT=$SYS_ROOT"

echo "Script is running in: $(pwd)"

# Check if Git is installed
if ! git --version > /dev/null 2>&1; then
echo "Error: Git is not installed."
exit 1
fi

# Check if the current directory is a Git repository
if ! git rev-parse --is-inside-work-tree > /dev/null 2>&1; then
echo "Error: The current directory is not a Git repository."
exit 1
fi

REPO_NAME=$(basename $(git rev-parse --show-toplevel))

# Change ownership and permissions
Expand Down

0 comments on commit 144d3d3

Please sign in to comment.