aboutsummaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorbeber <beber>2005-10-13 11:30:06 +0000
committerbeber <beber>2005-10-13 11:30:06 +0000
commit6aabd593cfd410676c622bb6e57af7c8e02c7518 (patch)
tree5d0c663dc082dd09a4d06b00c0bd98007b63fd4e /sh
parentAnd delete debug ! (diff)
downloadespik-6aabd593cfd410676c622bb6e57af7c8e02c7518.tar.xz
Diffstat (limited to 'sh')
-rw-r--r--sh/eci.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/sh/eci.sh b/sh/eci.sh
index 22f5e86..7a7cfac 100644
--- a/sh/eci.sh
+++ b/sh/eci.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/sh -x
TMPFILE="/tmp/.eci.$RANDOM"
@@ -29,7 +29,7 @@ DELCOMMENTFROM=$(grep -n -- '--This line and thoses under will be ignored--' $TM
head -n $(($DELCOMMENTFROM-1)) $TMPFILE > ${TMPFILE}.send
echo "
-$USER from $(hostname -f) : $(date "+%d/%m/%y %X")
+$USER from $(if [[ `uname -o` = "Cygwin" ]]; then hostname; else hostname -f; fi) : $(date "+%d/%m/%y %X")
$(cat ${TMPFILE}.send)
File changes :