Skip to content

Commit 25b7536

Browse files
ci: disable shell check SC1091
1 parent 67ce1e2 commit 25b7536

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

scripts/add-bin-dir.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,14 @@ update_path() {
2323
}
2424

2525
# Check for zsh or bash and their respective files
26+
2627
if [ -n "$ZSH_VERSION" ]; then
28+
echo "updating zsh profile"
2729
if [ -f "$HOME/.zshrc" ]; then
2830
update_path "$HOME/.zshrc"
2931
fi
3032
elif [ -n "$BASH_VERSION" ]; then
33+
echo "updating bash profile"
3134
if [ -f "$HOME/.bash_profile" ]; then
3235
update_path "$HOME/.bash_profile"
3336
elif [ -f "$HOME/.bashrc" ]; then
@@ -41,13 +44,17 @@ fi
4144

4245
# Apply the changes by sourcing the profile files
4346
if [ -n "$ZSH_VERSION" ] && [ -f "$HOME/.zshrc" ]; then
47+
# shellcheck disable=SC1091
4448
source "$HOME/.zshrc"
4549
elif [ -n "$BASH_VERSION" ]; then
4650
if [ -f "$HOME/.bash_profile" ]; then
51+
# shellcheck disable=SC1091
4752
source "$HOME/.bash_profile"
4853
elif [ -f "$HOME/.bashrc" ]; then
54+
# shellcheck disable=SC1091
4955
source "$HOME/.bashrc"
5056
elif [ -f "$HOME/.profile" ]; then
57+
# shellcheck disable=SC1091
5158
source "$HOME/.profile"
5259
fi
5360
fi

0 commit comments

Comments
 (0)