Date: Wed, 23 Mar 2011 22:21:43 +0100 From: Polytropon <freebsd@edvax.de> To: Chuck Swiger <cswiger@mac.com> Cc: Ryan Coleman <editor@d3photography.com>, FreeBSD Mailing List <freebsd-questions@freebsd.org> Subject: Re: Automating mounting of ISO images Message-ID: <20110323222143.d155ada6.freebsd@edvax.de> In-Reply-To: <6120FA66-E11C-4DFD-BF34-915807B3DA2B@mac.com> References: <21012F71-5038-45F1-98C6-72A0B1239009@d3photography.com> <31D3BED1-7035-435F-B127-EFAAF6AFF076@mac.com> <20D9B390-3190-4865-A19E-BDEDC595E7A2@d3photography.com> <6120FA66-E11C-4DFD-BF34-915807B3DA2B@mac.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 23 Mar 2011 14:17:38 -0700, Chuck Swiger <cswiger@mac.com> wrote: > Ah, yes-- add "mkdir -p /mount/office_files/images/${DEST}" before the mount command. > Someone else mentioned a use of basedir command.... 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. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110323222143.d155ada6.freebsd>