Skip to content

Commit

Permalink
Fix SC2207
Browse files Browse the repository at this point in the history
  • Loading branch information
gtrabanco committed Jul 17, 2024
1 parent 3ee99d5 commit 4f5ff53
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion shell/init-sloth.sh
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,9 @@ fi
if command -v gem > /dev/null 2> /dev/null || command -vp gem > /dev/null 2>&1; then
gem_bin="$(command -v gem || command -vp gem)"
gem_paths="$("$gem_bin" env gempath 2> /dev/null)"
#shellcheck disable=SC2207
path+=("${GEM_HOME}/bin")

#shellcheck disable=SC2207
[[ -n "$gem_paths" ]] && path+=($(echo "$gem_paths" | command -p tr ':' "\n" | command -p xargs -I _ echo _"/bin"))
fi

Expand Down

0 comments on commit 4f5ff53

Please sign in to comment.