File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -22,11 +22,8 @@ if [ -z "$VERSION" ]; then
2222 exit 1
2323fi
2424
25- # Just a placeholder for now
26- exit 0
27-
2825# Files to update
29- FILES=()
26+ FILES=(" netlinx-mode.el " )
3027
3128# Check if all files exist before attempting to modify them
3229for file in " ${FILES[@]} " ; do
@@ -37,7 +34,15 @@ for file in "${FILES[@]}"; do
3734done
3835
3936# Update version in each file
37+ if ! sed -i " s/^;; Version: .*$/;; Version: ${VERSION} /" netlinx-mode.el; then
38+ echo " Error: sed command failed"
39+ exit 1
40+ fi
4041
4142# Verify the changes were made
43+ if ! grep -q " ^;; Version: ${VERSION} $" netlinx-mode.el; then
44+ echo " Error: Failed to update version in netlinx-mode.el"
45+ exit 1
46+ fi
4247
4348echo " Version bumped to $VERSION in ${FILES[*]} "
You can’t perform that action at this time.
0 commit comments