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

start_rpi_capture: use mkdir -p #7

Open
rmackay9 opened this issue Oct 5, 2017 · 0 comments
Open

start_rpi_capture: use mkdir -p #7

rmackay9 opened this issue Oct 5, 2017 · 0 comments

Comments

@rmackay9
Copy link
Collaborator

rmackay9 commented Oct 5, 2017

Instead of checking for a directory and then creating it like this:

create base directory

if [ ! -d ${BASE_DIR} ]
then
mkdir ${BASE_DIR}
fi

we can just use "mkdir -p" which has the advantage of creating all directories above the directory as well.

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