diff options
| author | Tomas Chvatal <scarabeus@gentoo.org> | 2009-04-14 21:32:06 +0200 |
|---|---|---|
| committer | Tomas Chvatal <scarabeus@gentoo.org> | 2009-04-14 21:32:12 +0200 |
| commit | 33e3f5409d62e7897a718e5cca92b3ff278c6710 (patch) | |
| tree | effa52cc2669999d6a1d0647d560f3fa330b2731 /scripts/kr.sh | |
| parent | d3d6ebad00db9ddafc4f2ee1d6bfe611625d29bc (diff) | |
Update scripts to work from scripts folder same as from / dir
Diffstat (limited to 'scripts/kr.sh')
| -rwxr-xr-x | scripts/kr.sh | 2 |
1 files changed, 2 insertions, 0 deletions
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" |