Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Ken Bingham <[email protected]>
  • Loading branch information
sabedevops and qrkourier committed Sep 20, 2023
1 parent 0ccdbab commit 0e5c5d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docusaurus/docs/learn/quickstarts/network/miniziti.bash
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ showStatus() {
getDefaultProfile() {
default_profile="$DEFAULT_PROFILE"
if [[ -L "$default_profile" ]]; then
basename "$(readlink -f "$default_profile")"
basename "$(realpath "$default_profile")"
else
echo "miniziti"
fi
Expand All @@ -397,7 +397,7 @@ setProfile() {
logError "Invalid profile: $profile\nValid profiles are:\n$profiles"
exit 1
else
ln --no-dereference --symbolic --force "$PROFILES_DIR/$profile" "$DEFAULT_PROFILE"
ln -nsf "$PROFILES_DIR/$profile" "$DEFAULT_PROFILE"
logInfo "Set default profile to: '$profile'"
fi
}
Expand Down Expand Up @@ -658,7 +658,7 @@ main(){
fi

if [[ -L "$DEFAULT_PROFILE" ]]; then
if [[ "$(basename "$(readlink -f "$DEFAULT_PROFILE")")" == "$MINIKUBE_PROFILE" ]]; then
if [[ "$(basename "$(realpath "$DEFAULT_PROFILE")")" == "$MINIKUBE_PROFILE" ]]; then
unlink "$DEFAULT_PROFILE"
fi
fi
Expand Down

0 comments on commit 0e5c5d1

Please sign in to comment.