golem-cc 0.2.5 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/golem +2 -1
- package/package.json +1 -1
package/bin/golem
CHANGED
|
@@ -1029,10 +1029,11 @@ cmd_doctor() {
|
|
|
1029
1029
|
esac
|
|
1030
1030
|
|
|
1031
1031
|
# Check if golem is in PATH (the function/alias should work)
|
|
1032
|
+
# Fix also exports PATH in current session so re-check succeeds
|
|
1032
1033
|
run_check "golem command available in PATH" \
|
|
1033
1034
|
"command -v golem &>/dev/null" \
|
|
1034
1035
|
"Add PATH to $shell_config" \
|
|
1035
|
-
"grep -q '.golem/bin' \"$shell_config\" 2>/dev/null || echo 'export PATH=\"\$HOME/.golem/bin:\$PATH\"' >> \"$shell_config\""
|
|
1036
|
+
"grep -q '.golem/bin' \"$shell_config\" 2>/dev/null || echo 'export PATH=\"\$HOME/.golem/bin:\$PATH\"' >> \"$shell_config\"; [[ \":\$PATH:\" != *\":\$HOME/.golem/bin:\"* ]] && export PATH=\"\$HOME/.golem/bin:\$PATH\" || true"
|
|
1036
1037
|
|
|
1037
1038
|
# Check shell config files for golem setup
|
|
1038
1039
|
local shell_config_found=false
|