diff options
-rw-r--r-- | functions | 24 |
1 files changed, 12 insertions, 12 deletions
@@ -5,6 +5,18 @@ smallyes() { while echo "$YES" 2>/dev/null ; do : ; done } +in_path () { + IFS=":" _in_path "$1" +} +_in_path () { + for dir in $PATH; do + if [ -x "$dir/$1" ]; then + return 0 + fi + done + return 1 +} + ############################################################### interaction error () { @@ -1292,18 +1304,6 @@ on_exit () { N_EXIT_THINGS="$(( $N_EXIT_THINGS + 1 ))" } -in_path () { - IFS=":" _in_path "$1" -} -_in_path () { - for dir in $PATH; do - if [ -x "$dir/$1" ]; then - return 0 - fi - done - return 1 -} - ############################################################## fakechroot tools install_fakechroot_tools () { |