mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-22 11:13:26 +00:00
fix(script): Prevent git clean from removing ignored .env file
This commit is contained in:
@@ -167,8 +167,8 @@ perform_update() {
|
||||
|
||||
print_info "Cleaning repository (removing untracked files)..."
|
||||
# Remove untracked files and directories to ensure a clean state
|
||||
# Use with caution if user might store custom untracked files in the directory
|
||||
if ! sudo -u "$PULSE_USER" git clean -fdx; then
|
||||
# Use -f for files, -d for directories. Do NOT use -x which removes ignored files like .env
|
||||
if ! sudo -u "$PULSE_USER" git clean -fd; then
|
||||
print_warning "Failed to clean untracked files from the repository."
|
||||
# Continue anyway, as the core update (reset) succeeded
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user