Skip to content
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

Suggestion: add -p option to mkdir command in install.sh. #15

Open
L-N1988 opened this issue Nov 19, 2022 · 0 comments
Open

Suggestion: add -p option to mkdir command in install.sh. #15

L-N1988 opened this issue Nov 19, 2022 · 0 comments

Comments

@L-N1988
Copy link

L-N1988 commented Nov 19, 2022

The following commands in install.sh(line 10 ~ 13) will fail if there is no "$1"/snippets/latex-mode dir.

# Create the latex-mode dir.
if [ ! -d "$1"/snippets/latex-mode ]; then
	mkdir "$1"/snippets/latex-mode
fi

Adding -p option to mkdir can make parent directories as needed to prevent this little problem.

# Create the latex-mode dir.
if [ ! -d "$1"/snippets/latex-mode ]; then
	mkdir -p "$1"/snippets/latex-mode
fi
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

No branches or pull requests

1 participant