Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use builtin type to protect against aliases

  • Loading branch information...
commit 3dcf934a75fbafe6ea32a0bf27353a6a06b34f2b 1 parent 0a797fb
@ndbroadbent authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/scm_breeze.sh
View
4 lib/scm_breeze.sh
@@ -14,9 +14,9 @@ _alias(){ alias "$@" 2> /dev/null; }
find_binary(){
if [ $shell = "zsh" ]; then
- type -p "$1" | sed "s/$1 is //" | head -1
+ builtin type -p "$1" | sed "s/$1 is //" | head -1
else
- type -P "$1"
+ builtin type -P "$1"
fi
}
Please sign in to comment.
Something went wrong with that request. Please try again.