aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbeber <beber>2005-10-13 11:37:08 +0000
committerbeber <beber>2005-10-13 11:37:08 +0000
commitb91dd3b38b005b4169a100ba2a627e4b745b9b4a (patch)
treec8dae242bf191cb1e707befcde4d63b5343dad55
parent(no commit message) (diff)
downloadespik-b91dd3b38b005b4169a100ba2a627e4b745b9b4a.tar.xz
Grrrr !!
Diffstat (limited to '')
-rw-r--r--ChangeLog34
-rw-r--r--sh/eci.sh6
2 files changed, 37 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index c0edc86..10552cd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -85,3 +85,37 @@ M sh/eci.sh
File changes :
M sh/eci.sh
+
+ from FT-DYOQYGD9HQ8B : 13/10/05 13:32:12
+
+
+File changes :
+M sh/eci.sh
+
+ from FT-DYOQYGD9HQ8B : 13/10/05 13:32:39
+
+
+File changes :
+M ChangeLog
+M sh/eci.sh
+
+ from FT-DYOQYGD9HQ8B : 13/10/05 13:33:28
+
+
+File changes :
+M ChangeLog
+M sh/eci.sh
+
+ from FT-DYOQYGD9HQ8B : 13/10/05 13:35:23
+move to bash
+
+File changes :
+M ChangeLog
+M sh/eci.sh
+
+ from FT-DYOQYGD9HQ8B : 13/10/05 13:36:49
+Grrrr !!
+
+File changes :
+M ChangeLog
+M sh/eci.sh
diff --git a/sh/eci.sh b/sh/eci.sh
index d182371..0cf06d5 100644
--- a/sh/eci.sh
+++ b/sh/eci.sh
@@ -1,4 +1,4 @@
-#!/bin/sh -x
+#!/bin/bash
TMPFILE="/tmp/.eci.$RANDOM"
@@ -19,7 +19,7 @@ $EDITOR $TMPFILE
SUM_NEW=$(cksum $TMPFILE | awk '{print $1}')
-if [[ ${SUM_ORI} -eq ${SUM_NEW} ]]; then
+if [ "${SUM_ORI}" = "${SUM_NEW}" ]; then
echo "Enter something !"
rm -f $TMPFILE
exit -1
@@ -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 $(if [[ `uname -o` = "Cygwin" ]]; then hostname; else hostname -f; fi) : $(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 :