summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorroot <root@telnet.shack>2010-06-21 21:26:32 +0000
committerroot <root@telnet.shack>2010-06-21 21:26:32 +0000
commit5b8e9b8701457644199d1e4e6295a24abbe0c9e4 (patch)
tree68c43f0749b4440956377cd1f1bb27f0afd20065
parent758be77cd81c4d9f44eae1506e5dc929df4daa3b (diff)
noise: changed way commit is read out
-rwxr-xr-xnoise9
1 files changed, 6 insertions, 3 deletions
diff --git a/noise b/noise
index dcef9f9e..c410168c 100755
--- a/noise
+++ b/noise
@@ -72,7 +72,7 @@ cleanup() {
rmdir /tmp/noise 2>/dev/null
}
-
+exec 2>&1
qname="`readlink -f "$0"`"
dirname="`dirname "$qname"`"
export HOME='/home/shack'
@@ -80,7 +80,7 @@ if test -d "$dirname/modules" ; then
export NOISE_PATH="${NOISE_PATH+$NOISE_PATH:}$dirname/modules"
export NOISE_PATH="${NOISE_PATH+$NOISE_PATH:}$HOME/noise/modules"
fi
-mkdir -vp /tmp/noise/$$
+mkdir -p /tmp/noise/$$
linefeed="/tmp/noise/$$/linefeed"
env="/tmp/noise/$$/environment"
trap cleanup EXIT
@@ -127,7 +127,10 @@ jobs="${jobs+$jobs }`jobs -p`"
##
cat<<EOF
Welcome to 23.shack version 0.9 beta 4 \
-commit `cat $dirname/.git/refs/heads/master | dd count=23 bs=1`...
+commit `
+ cd $dirname &&
+ git log -n 1 | head -n 1 | cut -d\ -f 2 | dd count=23 bs=1 2>/dev/null
+`...

## Motto Of The Day\