3 [[ ${PWD/*\//} = scripts
]] && pushd ..
> /dev
/null ||
pushd .
> /dev
/null
6 echo "Help: this script indents code according to the K&R standard"
7 echo "Usage: $0 path/to/file.c"
9 elif [ ! -e "$1" ]; then
10 echo "Error: file '$1' doesn't exist!"
14 indent
-kr -l79 -ts4 -ip4 -ppi 4 "$1"