Skip to content

Create .config/sbp if not exists #132

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 24, 2024
Merged

Conversation

sweet-jelly
Copy link
Contributor

If this folder does not exist , sbp.bash fails with

cp: cannot create regular file '/home/vlad/.config/sbp/colors.conf': No such file or directory
/home/vlad/sbp/src/configure.bash: line 97: /home/vlad/.config/sbp/settings.conf: No such file or directory
/home/vlad/sbp/src/configure.bash: line 102: /home/vlad/.config/sbp/colors.conf: No such file or directory
/home/vlad/sbp/src/main.bash: line 30: COLUMNS / total_segment_count: divis

and completely breaks bash prompt.

I'm not sure if it would be better to create this folder via bin/install, but I think that sbp.bash should be at least somewhat failproof and it definitely shouldn't blow up in user's face just because of config directory.

@brujoand
Copy link
Owner

Thabks, this looks like a good approach to me 👍

@brujoand brujoand merged commit d48c8b2 into brujoand:master Aug 24, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants