diff --git a/bin/devc b/bin/devc index b5e2eca..f7f2dc9 100755 --- a/bin/devc +++ b/bin/devc @@ -26,7 +26,7 @@ default_args() { [[ -e "${SSH_AUTH_SOCK:-}" ]] && run_opts+=("-v" "$SSH_AUTH_SOCK:/run/user/1000/ssh-auth-sock" "-e" "SSH_AUTH_SOCK=/run/user/1000/ssh-auth-sock") # Load custom container config. - local config_file="$(dirname "${BASH_SOURCE[0]}")/containers/$name/config.sh" + local config_file="${BASH_SOURCE[0]%/*}/../containers/$name/config.sh" [[ -f "$config_file" ]] && source "$config_file" || true } diff --git a/containers/go/config.sh b/containers/go/config.sh index 5ad5c3b..378c791 100644 --- a/containers/go/config.sh +++ b/containers/go/config.sh @@ -1,2 +1,2 @@ #!/bin/bash -run_opts+=("-v" "$HOME/Documents/go:/home/user/Documents/go") +run_opts+=("-v" "$HOME/Code/go:/home/user/Code/go") diff --git a/containers/infra/config.sh b/containers/infra/config.sh index 1179e77..e9e170a 100644 --- a/containers/infra/config.sh +++ b/containers/infra/config.sh @@ -1,2 +1,2 @@ #!/bin/bash -run_opts+=("-v" "$HOME/Documents/infra:/home/user/Documents/infra") +run_opts+=("-v" "$HOME/Code/infra:/home/user/Code/infra")