Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Jess Frazelle <github@jessfraz.com>
  • Loading branch information
jessfraz committed Mar 29, 2024
1 parent 8384504 commit 01f471f
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions .dockerfunc
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,15 @@ audacity(){
${DOCKER_REPO_PREFIX}/audacity
}
aws(){
docker run -it --rm \
-v "${HOME}/.aws:/root/.aws" \
--log-driver none \
--name aws \
${DOCKER_REPO_PREFIX}/awscli "$@"
if [[ -n "$(which aws)" ]]; then
"$(which aws)" "$@"
else
docker run -it --rm \
-v "${HOME}/.aws:/root/.aws" \
--log-driver none \
--name aws \
${DOCKER_REPO_PREFIX}/awscli "$@"
fi
}
az(){
docker run -it --rm \
Expand Down Expand Up @@ -1109,9 +1113,13 @@ torproxy(){
hostess add torproxy "$(docker inspect --format '{{.NetworkSettings.Networks.bridge.IPAddress}}' torproxy)"
}
traceroute(){
docker run --rm -it \
--net host \
${DOCKER_REPO_PREFIX}/traceroute "$@"
if [[ -n "$(which traceroute)" ]]; then
"$(which traceroute)" "$@"
else
docker run --rm -it \
--net host \
${DOCKER_REPO_PREFIX}/traceroute "$@"
fi
}
transmission(){
del_stopped transmission
Expand Down

0 comments on commit 01f471f

Please sign in to comment.