You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+27Lines changed: 27 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,33 @@ All notable changes to EngineScript will be documented in this file.
4
4
5
5
Changes are organized by date, with the most recent changes listed first.
6
6
7
+
## 2025-07-01
8
+
9
+
### 🔧 CODE QUALITY
10
+
-**Shell Scripts**: Standardized shebang line in `scripts/functions/alias/alias-debug.sh` to use `#!/usr/bin/env bash` for consistency across all shell scripts
11
+
-**Function Deduplication**: Created shared functions library at `scripts/functions/shared/enginescript-common.sh` to consolidate duplicated functions
12
+
- Consolidated `debug_pause()` and `print_last_errors()` functions from `scripts/install/enginescript-install.sh` and `scripts/install/nginx/nginx-install.sh`
13
+
- Consolidated `restart_service()`, `restart_php_fpm()`, and `clear_cache()` functions from `scripts/functions/alias/alias-cache.sh` and `scripts/functions/alias/alias-restart.sh`
14
+
- Updated `scripts/install/enginescript-install.sh`, `scripts/install/nginx/nginx-install.sh`, `scripts/install/tools/tools-install.sh`, `scripts/functions/alias/alias-cache.sh`, and `scripts/functions/alias/alias-restart.sh` to source the shared library
15
+
- Removed duplicate function definitions from individual scripts, improving maintainability and consistency
16
+
17
+
### 🐛 BUG FIXES
18
+
-**Timing Issues**: Fixed timing issues in `scripts/functions/vhost/vhost-export.sh`
19
+
- Added `set -e` and `set -o pipefail` for proper error handling
20
+
- Changed all command execution to use immediate error checking instead of checking `$?` after the fact
21
+
- Improved error checking for `cd` commands and file operations
22
+
- Enhanced cleanup operations with `|| true` to prevent secondary errors
23
+
- Fixed race conditions between database export, compression, and file archiving operations
24
+
-**Silent Error Handling**: Fixed silent error handling in `scripts/functions/alias/alias-debug.sh`
25
+
- Added `set -o pipefail` for proper pipeline error handling
26
+
- Enhanced all command substitutions with error checking and fallback values
27
+
- Added comprehensive error checking for system information gathering (CPU, memory, disk, network)
28
+
- Improved hostname, network interface, and port detection with proper error handling
29
+
- Added fallback values ("unknown") for failed system information commands
30
+
- Enhanced website status checking with proper curl error handling
0 commit comments