Skip to content

Commit

Permalink
diff
Browse files Browse the repository at this point in the history
  • Loading branch information
valiantlynx committed Sep 18, 2024
1 parent 6fdb174 commit e80dc3a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions gh-pages.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

# Define the name of the new branch
NEW_BRANCH="new-branch2"
NEW_BRANCH="new-branch3"

# Check if the branch already exists
if git rev-parse --verify $NEW_BRANCH >/dev/null 2>&1; then
Expand Down Expand Up @@ -45,8 +45,9 @@ else
exit 1
fi

# Perform the operations on the new branch
# Exclude the .git directory and .env file from deletion
sleep 5
# Remove all files except those in the build directory, .env, and .git
echo "Removing files except build directory contents, .env, and .git..."
find . -mindepth 1 -not -path "./build*" -not -path "./.git*" -not -name ".env" -exec rm -rf {} + 2>/dev/null

# Check if the build directory exists and has contents
Expand Down

0 comments on commit e80dc3a

Please sign in to comment.