On Mar 23, 2011, at 2:21 PM, Polytropon wrote: > Prefix it with a test: > > [ -d /mount/office_files/images/${DEST} ] && mkdir... > mount... > > so there will be no error if the script is started for the > second time (and the directories still exist), means: create > them only if not yet present.
While I agree with this suggested change from the perspective of only doing work if you actually need to do it, note that "mkdir -p" doesn't return an error if the directory already exists. :-) Regards, -- -Chuck _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"