Skip to content

Commit 54090ab

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

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.github/scripts/version-bump.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ main() {
114114
echo "🔍 Detecting modified modules..."
115115

116116
local changed_files
117+
echo "git diff --name-only ${base_ref} ...HEAD"
117118
changed_files=$(git diff --name-only "${base_ref}"...HEAD)
118119
local modules
119120
modules=$(echo "$changed_files" | grep -E '^registry/[^/]+/modules/[^/]+/' | cut -d'/' -f1-4 | sort -u)

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)