Skip to content

Commit

Permalink
upgrade deps & reinit git
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanbarrett committed Apr 1, 2024
1 parent 6f90fab commit 41c89fe
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 57 deletions.
114 changes: 57 additions & 57 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions scripts/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,31 @@ else
fi
fi

# If .git is still pointing to livv-stack, remove it and reinitialize git
if [ -d ".git" ]; then
git_url=$(git config --get remote.origin.url)
repo_name=$(basename -s .git "$git_url")

# Check if the repository name matches
if [ "$repo_name" = "livv-stack" ]; then
echo "Deleting livv-stack .git directory..."
rm -rf .git

echo "Reinitializing git repository..."
git init

git add .
git commit -m "Initial commit"
fi
else
echo "No .git directory found. Initializing git repository..."
git init

git add .
git commit -m "Initial commit"
fi



# Install composer dependencies
echo "Installing composer dependencies..."
Expand Down

0 comments on commit 41c89fe

Please sign in to comment.