Skip to content

Commit aa10bf0

Browse files
committed
chore(claude-code): source bashrc file only if it exists
1 parent 056937a commit aa10bf0

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

registry/coder/modules/claude-code/scripts/install.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#!/bin/bash
22
set -euo pipefail
33

4-
source "$HOME"/.bashrc
4+
if [ -f "$HOME/.bashrc" ]; then
5+
source "$HOME"/.bashrc
6+
fi
57

68
BOLD='\033[0;1m'
79

registry/coder/modules/claude-code/scripts/start.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#!/bin/bash
22
set -euo pipefail
33

4-
source "$HOME"/.bashrc
4+
if [ -f "$HOME/.bashrc" ]; then
5+
source "$HOME"/.bashrc
6+
fi
57
export PATH="$HOME/.local/bin:$PATH"
68

79
command_exists() {

0 commit comments

Comments
 (0)