X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=ls-status;h=3bcc50cab7970ca060a3f45a6b5a9909b7f9e442;hb=5e1ae12d726ec5594426315bea7ee6a0b85b8bd1;hp=5d3808392d8233b223a82b0c556ae1520386551d;hpb=bde260ddb033606e9c70830cca48c94962c08021;p=git-scripts.git diff --git a/ls-status b/ls-status index 5d38083..3bcc50c 100755 --- a/ls-status +++ b/ls-status @@ -1,12 +1,9 @@ #! /bin/sh -d="`git rev-parse --show-toplevel`" && +d="`pwd`" && +cd "`dirname \"$0\"`" && +prog_dir="`pwd`" && +export prog_dir && +cd "$d" && -if [ -n "$d" ]; then - cd "`dirname \"$0\"`" && - prog_dir="`pwd`" && - export prog_dir && - cd "$d" && - - if [ -n "`"$prog_dir"/git-status.sh --short`" ]; then echo "$d"; fi -fi +if [ -n "`"$prog_dir"/git-status.sh --short`" ]; then echo "$d"; fi