mirror of
https://github.com/ohmybash/oh-my-bash.git
synced 2024-05-11 05:55:37 +00:00
plugins/sdkman: Add cosmetic changes
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Set SDKMAN_DIR if it isn't already defined
|
||||
[[ -z "$SDKMAN_DIR" ]] && export SDKMAN_DIR="$HOME/.sdkman"
|
||||
[[ ${SDKMAN_DIR-} ]] || export SDKMAN_DIR=~/.sdkman
|
||||
|
||||
# Try to load sdk only if command not already available
|
||||
if ! type "sdk" &> /dev/null; then
|
||||
[[ -s "$SDKMAN_DIR/bin/sdkman-init.sh" ]] && source "$SDKMAN_DIR/bin/sdkman-init.sh"
|
||||
# Try to load sdk only if the command is not available
|
||||
if ! type_exists sdk && [[ -s $SDKMAN_DIR/bin/sdkman-init.sh ]]; then
|
||||
source "$SDKMAN_DIR/bin/sdkman-init.sh"
|
||||
fi
|
||||
|
Reference in New Issue
Block a user