spec-and-loop 1.0.5 → 1.0.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/package.json +1 -1
- package/scripts/ralph-run.sh +4 -1
package/package.json
CHANGED
package/scripts/ralph-run.sh
CHANGED
|
@@ -715,7 +715,10 @@ Tasks completed:
|
|
|
715
715
|
{{context}}
|
|
716
716
|
EOF
|
|
717
717
|
|
|
718
|
-
|
|
718
|
+
# Use a portable inplace replace: write to temp file then move into place
|
|
719
|
+
local _tmpfile
|
|
720
|
+
_tmpfile=$(mktemp 2>/dev/null || mktemp -t ralph-template)
|
|
721
|
+
sed "s|{{change_dir}}|$abs_change_dir|g" "$template_file" > "$_tmpfile" && mv "$_tmpfile" "$template_file"
|
|
719
722
|
|
|
720
723
|
log_verbose "Prompt template created: $template_file"
|
|
721
724
|
}
|