fix(migration,profile): recipe resolves the clone root and fails closed before cp; find -mindepth 1; grep -F id match; local JSON on stdin; -L guard before the impeccable refresh
This commit is contained in:
1 parent
08ae797ba5
commit
04635833a2
5 files changed
+43
-24
No files matched your search
+2
-1
@@ -448,7 +448,8 @@ print(d.get('impeccable',{}).get('version','latest'))
|
||||
if [ "$IMP_OK" = true ] && [ -f "$IMP_SKILL_DIR/SKILL.md" ]; then
|
||||
IMP_SKILL_VER=$(sed -n 's/^version:[[:space:]]*//p' "$IMP_SKILL_DIR/SKILL.md" | head -1)
|
||||
ok "impeccable refreshed (CLI ${IMP_VER:-latest}, skill ${IMP_SKILL_VER:-?})"
|
||||
cd "$REPO" && rm -rf skills-external/impeccable && mv "$IMP_SKILL_DIR" skills-external/impeccable
|
||||
[ ! -L "$IMP_SKILL_DIR" ] && cd "$REPO" && rm -rf skills-external/impeccable \
|
||||
&& mv "$IMP_SKILL_DIR" skills-external/impeccable
|
||||
else
|
||||
warn "impeccable refresh failed (${IMP_FAIL:-no SKILL.md written}) — existing copy kept"
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user