The -n flag causes breakages due to spaces in the src file name #26

Closed
opened 2025-05-27 03:02:03 +02:00 by pipetogrep · 3 comments

When creating a new post , BSSG creates a file that looks like 2025-05-26-test-post.md. When using ./bssg.sh edit -n src/2025-05-26-test-post.md the file gets renamed to 2025-05-26 20:55:36 -0400-test-post.md.

During the build process, this results in

Step 1: Processing 2 files using centralized awk for raw data...
awk: -:2: fatal: cannot open file `src/2025-05-26' for reading: No such file or directory

This breaks the build and leaves one with a broken site unless they manually rename the file. My guess is there a variable that need double quotes around it somewhere.

When creating a new post , BSSG creates a file that looks like `2025-05-26-test-post.md`. When using `./bssg.sh edit -n src/2025-05-26-test-post.md` the file gets renamed to `2025-05-26 20:55:36 -0400-test-post.md`. During the build process, this results in ``` Step 1: Processing 2 files using centralized awk for raw data... awk: -:2: fatal: cannot open file `src/2025-05-26' for reading: No such file or directory ``` This breaks the build and leaves one with a broken site unless they manually rename the file. My guess is there a variable that need double quotes around it somewhere.
stefano self-assigned this 2025-05-27 08:45:53 +02:00
Owner

I'll check this, thanks!

I'll check this, thanks!
Owner

Fixed in 0.30.0

Fixed in 0.30.0
Author

Thank you! 0.30.0 looks amazing!

Thank you! 0.30.0 looks amazing!
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: stefano/BSSG#26
No description provided.