Skip to content

Commit 1d80d7d

Browse files
ElleNajtclaude
andcommitted
Fix sed syntax error in convert_ipynb_to_org.sh
Added missing closing delimiter '/' to sed substitution command. The pattern 's/^%/#%' was missing the final '/' which caused "unterminated substitute in regular expression" error on macOS. Fixed on both Darwin and Linux branches. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 21e004d commit 1d80d7d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

bashscripts/convert_ipynb_to_org.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ convert_file() {
7676
if [[ "$(uname -s)" == "Darwin" ]]; then
7777
sed -i '' '/^<<.*>>$/d' "$org_file"
7878
sed -i '' '/:PROPERTIES:/,/:END:/d' "$org_file"
79-
sed -i '' 's/^%/#%' "$org_file"
79+
sed -i '' 's/^%/#%/' "$org_file"
8080
else
8181
sed -i '/^<<.*>>$/d' "$org_file"
8282
sed -i '/:PROPERTIES:/,/:END:/d' "$org_file"
83-
sed -i 's/^%/#%' "$org_file"
83+
sed -i 's/^%/#%/' "$org_file"
8484
fi
8585
fi
8686

0 commit comments

Comments
 (0)