Permalink
Browse files

bash: make 'type' parsing work and suppress stderr

  • Loading branch information...
Snaipe committed Jun 11, 2017
1 parent 5e9898a commit a74101dabf6f84680e03e3e703d0b8858fbfbcfb
Showing with 1 addition and 1 deletion.
  1. +1 −1 .config/dotgit/bin/git-profile
@@ -242,7 +242,7 @@ dot_foreach() {
dot_ls | xargs -I% sh -c "$cmd" "" dot profile run % "$@"
}

if ! type dot_$cmd | grep -qi function; then
if ! LC_ALL=C type dot_$cmd 2>/dev/null | grep -qi function; then
cmd=run
elif [ $# -ge 1 ]; then
shift

0 comments on commit a74101d

Please sign in to comment.