Skip to content

Commit becf913

Browse files
authored
Merge pull request #7 from codevalve/fix/session-start-script-syntax
Fix session-start script shell compatibility
2 parents db67c05 + bdd0e92 commit becf913

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/core/common.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@ check_required_tools() {
1717
local config_file="$1"
1818
local missing_tools=()
1919

20-
while IFS= read -r tool; do
20+
# Get required tools and check each one
21+
for tool in $(yq eval '.tools.required[]' "$config_file"); do
2122
if ! command_exists "$tool"; then
2223
missing_tools+=("$tool")
2324
fi
24-
done < <(yq eval '.tools.required[]' "$config_file")
25+
done
2526

2627
if [ ${#missing_tools[@]} -ne 0 ]; then
2728
echo -e "${RED}Missing required tools:${NC}"

0 commit comments

Comments
 (0)