NicoVarg99 / MEGA-Instances

This script will help you running multiple MEGA (megasync) instances.
GNU General Public License v3.0
39 stars 11 forks source link

usage of mkdir #2

Closed PhilippVerpoort closed 8 years ago

PhilippVerpoort commented 8 years ago

You may want to use mkdir -p or pipe the output of mkdir into /dev/null. Otherwise users may receive additional error messages. Avoiding error messages will give users of your script one less thing to worry about. For example:

mkdir /home/$USER/.config/autostart

is very likely to give you an error like

mkdir: cannot create directory

since the autostart directory is already existent on most machines.

NicoVarg99 commented 8 years ago

Done. Thank you again.