Skip to content

Commit

Permalink
bash: make 'type' parsing work and suppress stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
Snaipe committed Jun 11, 2017
1 parent 5e9898a commit a74101d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .config/dotgit/bin/git-profile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a74101d

Please sign in to comment.