Skip to content

refactor: simplify patch-statusline.sh and install.sh#21

Merged
glauberlima merged 1 commit intomainfrom
nova
Feb 23, 2026
Merged

refactor: simplify patch-statusline.sh and install.sh#21
glauberlima merged 1 commit intomainfrom
nova

Conversation

@glauberlima
Copy link
Copy Markdown
Owner

  • patch-statusline.sh: extract _replace_marker_block() shared helper, removing duplicated mktemp/sed/chmod/mv pattern from both replace_config_block() and replace_messages_block(); drop GNU-only chmod --reference in favour of plain chmod +x

  • install.sh: replace local -r with local (7 sites) for bash 3.2 compatibility; merge download_with_retry() into download_file(), eliminating the thin wrapper and its SC2310 suppression; pre-extract version strings in check_dependencies() to remove 4x SC2312 suppressions; simplify generate_timestamp() fallback to plain date +%s, removing remaining SC2312 suppression

- patch-statusline.sh: extract _replace_marker_block() shared helper,
  removing duplicated mktemp/sed/chmod/mv pattern from both
  replace_config_block() and replace_messages_block(); drop GNU-only
  chmod --reference in favour of plain chmod +x

- install.sh: replace local -r with local (7 sites) for bash 3.2
  compatibility; merge download_with_retry() into download_file(),
  eliminating the thin wrapper and its SC2310 suppression; pre-extract
  version strings in check_dependencies() to remove 4x SC2312
  suppressions; simplify generate_timestamp() fallback to plain
  date +%s, removing remaining SC2312 suppression
@glauberlima glauberlima merged commit 57b5bf3 into main Feb 23, 2026
1 check passed
@glauberlima glauberlima deleted the nova branch March 6, 2026 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant