Skip to content

Commit

Permalink
remove use of BH_BIN
Browse files Browse the repository at this point in the history
  • Loading branch information
alanlivio committed Apr 13, 2023
1 parent 0902f72 commit cf6157b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
5 changes: 2 additions & 3 deletions init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@

BH_DIR="$(dirname "${BASH_SOURCE[0]}")"
BH_LIB="$BH_DIR/lib"
if [ -z "${BH_BIN}" ]; then BH_BIN="$HOME/bin"; fi

#########################
# load os_*.bash files
# load os_<name>.bash files
#########################

source "$BH_DIR/os_any.bash"
Expand All @@ -24,7 +23,7 @@ darwin*)
esac

#########################
# load <tool>.bash files
# load <command>.bash files
#########################

if type adb &>/dev/null; then source "$BH_LIB/adb.bash"; fi
Expand Down
10 changes: 0 additions & 10 deletions os_any.bash
Original file line number Diff line number Diff line change
Expand Up @@ -127,16 +127,6 @@ function decompress_from_url() {
decompress $file_name $2
}

function decompress_from_url_one_file_and_move_to_bin() {
: ${2?"Usage: ${FUNCNAME[0]} <URL> <bin_file_to_be_installed>]"}
decompress_from_url $1 /tmp/
return_if_last_command_fail
local dir_name="/tmp/$(basename $1)" # XXX.zip
dir_name="${dir_name%.*}" # XXX
log_msg "coping $dir_name/$2 to $BH_BIN"
cp $dir_name/$2 $BH_BIN
}

#########################
# ssh
#########################
Expand Down

0 comments on commit cf6157b

Please sign in to comment.