From 33e3f5409d62e7897a718e5cca92b3ff278c6710 Mon Sep 17 00:00:00 2001 From: Tomas Chvatal Date: Tue, 14 Apr 2009 21:32:06 +0200 Subject: Update scripts to work from scripts folder same as from / dir --- scripts/kr.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scripts/kr.sh') diff --git a/scripts/kr.sh b/scripts/kr.sh index dbc1842..4977efc 100755 --- a/scripts/kr.sh +++ b/scripts/kr.sh @@ -1,4 +1,6 @@ #!/bin/sh +PWD=$(pwd) +[[ ${PWD/*\//} = scripts ]] && pushd .. > /dev/null || pushd . > /dev/null if [ ! "$1" ]; then echo "Help: this script indents code according to the K&R standard" -- cgit v1.2.3