aboutsummaryrefslogtreecommitdiff
path: root/sh
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 /sh
parent(no commit message) (diff)
downloadespik-b91dd3b38b005b4169a100ba2a627e4b745b9b4a.tar.xz
Grrrr !!
Diffstat (limited to '')
-rw-r--r--sh/eci.sh6
1 files changed, 3 insertions, 3 deletions
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 :