From: "John Morrison" <john@morrison.mine.nu>
To: "Pierre A. Humblet" <pierre@phumblet.no-ip.org>
Cc: cygwin-apps@cygwin.com
Subject: Re: [RFU] [1.7] Base-Files
Date: Fri, 13 Feb 2009 20:07:00 -0000 [thread overview]
Message-ID: <8882916fb43c9dbf7169ec5f5e42061b.squirrel@mail.morrison.mine.nu> (raw)
In-Reply-To: <016101c98e0c$696f1890$4e0410ac@wirelessworld.airvananet.com>
> ----- Original Message -----
> From: "John Morrison"
> To: "Pierre A. Humblet"
> Sent: Friday, February 13, 2009 1:09 PM
> Subject: Re: [RFU] [1.7] Base-Files
>
> |
> | Patch would be appreciated, thanks Pierre; I've not got an environment
> | which could test that.
>
> Here it is,
>
> + { [ -d "$TEMP" ] && HOME="$TMP"; } || { [ -d /tmp ] &&
> HOME=/tmp; } || HOME=/
Did you mean to test for "$TEMP" then use "$TMP"? If not, is...
if [ ! -d "${HOME}" ]; then
if mkdir -p "${HOME}"; then
echo "Copying skeleton files."
echo "These files are for the user to personalise their
cygwin experience."
echo
echo "They will never be overwritten nor automatically
updated."
echo
cd /etc/skel
/bin/find . -type f | while read f; do
fDest=`echo ${f} | sed -e 's/^\.//g'`
if [ ! -e "${HOME}${fDest}" -a ! -L
"${HOME}${fDest}" ]; then
/usr/bin/install -D -p -v "${f}"
"${HOME}/${fDest}"
fi
done
else
echo "${HOME} could not be created."
{ [ -d "${TEMP}" ] && HOME="${TEMP}"; } ||
{ [ -d "${TMP}" ] && HOME="${TMP}"; } ||
{ [ -d /tmp ] && HOME=/tmp; } ||
HOME=/
echo "Setting HOME to ${HOME}."
fi
fi
OK?
J.
next prev parent reply other threads:[~2009-02-13 20:07 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-13 15:52 John Morrison
2009-02-13 17:40 ` Pierre A. Humblet
2009-02-13 18:09 ` John Morrison
2009-02-13 18:54 ` Pierre A. Humblet
2009-02-13 19:57 ` Dave Korn
2009-02-13 20:07 ` Pierre A. Humblet
2009-02-13 20:10 ` Pierre A. Humblet
2009-02-13 20:07 ` John Morrison [this message]
2009-02-13 20:43 ` [RFU] [1.7] Base-Files 3.8-2 John Morrison
2009-02-14 21:05 ` Corinna Vinschen
2009-02-15 11:59 ` John Morrison
2009-02-15 20:05 ` Christopher Faylor
2009-02-16 8:40 ` John Morrison
2009-02-16 8:56 ` [RFU] [1.7] Base-Files 3.8-3 (was 3.8-2) John Morrison
2009-02-16 9:38 ` Corinna Vinschen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8882916fb43c9dbf7169ec5f5e42061b.squirrel@mail.morrison.mine.nu \
--to=john@morrison.mine.nu \
--cc=cygwin-apps@cygwin.com \
--cc=pierre@phumblet.no-ip.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).