From 196616c8e2ee714dbf981337cb87dfed916ea213 Mon Sep 17 00:00:00 2001 From: tfheen Date: Fri, 27 Feb 2004 12:39:09 +0000 Subject: [PATCH] handle offline blogging; handle box being in subdomains of raw.no git-svn-id: file:///svn/tfheen/trunk/dotfiles@441 8da78d58-1cd3-0310-bee5-d77bd1b3e8bf --- environment | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/environment b/environment index 162fa73..2749c3d 100644 --- a/environment +++ b/environment @@ -31,8 +31,10 @@ blog () { FILE=$(date +"%Y-%m-%d-%H-%M")_$SUBJ.txt cd $DIR $EDITOR $FILE - svn add $FILE - svn ci -m"Initial commit" $FILE + if [ "$OFFLINE" != "1" ]; then + svn add $FILE + svn ci -m"Initial commit" $FILE + fi popd } @@ -179,7 +181,7 @@ case "$HOSTNAME" in esac case "$DOMAINNAME" in - idi.ntnu.no|stud.ntnu.no|raw.no) + idi.ntnu.no|stud.ntnu.no|*raw.no) XTERM=Eterm ;; # Sigh, no locale here, at least not uniformly. -- 2.39.5