Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions install.bash
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
usage() {
cat <<'USAGE'
Usage: install.sh [--prefix PATH] [--force] [--with-ui]
[--auto] [--yes]
[--auto] [--yes]
[--profiles minimal|dev|ops[,..]]
[--features gnu_over_bsd,build_flags,...]
[--install brew,asdf,doppler,...]
Expand Down Expand Up @@ -71,7 +71,7 @@

while [[ $# -gt 0 ]]; do
case "$1" in
--prefix)
--prefix)
if [[ $# -lt 2 ]]; then
echo "Error: --prefix requires a value" >&2
usage
Expand Down Expand Up @@ -539,8 +539,8 @@
# Detect and fix "template as file" loop hazard
for f in "$HOME/.bashrc" "$HOME/.bash_profile"; do
if [[ -f "$f" && ! -L "$f" ]]; then
if grep -q "@file bashrc" "$f" || grep -q "@file bash_profile" "$f"; then

Check warning on line 542 in install.bash

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Merge this if statement with the enclosing one.

See more on https://sonarcloud.io/project/issues?id=jbcom_get-bashed&issues=AZ-ib857JZ7zf08elddL&open=AZ-ib857JZ7zf08elddL&pullRequest=30
if [[ "$LINK_DOTFILES" -eq 0 ]]; then

Check warning on line 543 in install.bash

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Merge this if statement with the enclosing one.

See more on https://sonarcloud.io/project/issues?id=jbcom_get-bashed&issues=AZ-ib857JZ7zf08elddM&open=AZ-ib857JZ7zf08elddM&pullRequest=30
echo "Detected recursive loop hazard in $f. Cleaning..."
backup_file "$f"
echo "# get-bashed: recovered from loop" > "$f"
Expand Down
Loading
Loading