* [Wed, Oct 13, 2010 at 09:51:32PM +0200] Václav Ovsík:
--- a/etckeeper/commit.d/50vcs-commit
+++ b/etckeeper/commit.d/50vcs-commit
[..]
-hostname=`hostname`
+hostname=`hostname|sed 's/\..*//;'`
[..]
will probably work everywhere.

Maybe just a matter of taste, but I'd prefer something in the line of:

hostname=`hostname`
hostname=${hostname%%.*}

in order not to fork another process. Not sure it will work everywhere, but on POSIX shells it should.

Ciao,
Gian Piero.



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to