Skip to content

Commit

Permalink
Fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
milesj committed Oct 5, 2023
1 parent 58df18f commit 553d456
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions website/static/install/moon.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ $DownloadUrl = if ($Version -eq "latest") {
"https://github.com/moonrepo/moon/releases/download/v${Version}/${Target}"
}

$InstallDir = if ($env:MOON_INSTALL_DIR -eq "") {
"${Home}\.moon\bin"
} else {
$InstallDir = if ($env:MOON_INSTALL_DIR) {
$env:MOON_INSTALL_DIR
} else {
"${Home}\.moon\bin"
}

$BinPath = "${InstallDir}\moon.exe"
Expand Down
4 changes: 2 additions & 2 deletions website/static/install/moon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ else
fi

if [ -z "$MOON_INSTALL_DIR" ]; then
install_dir="$MOON_INSTALL_DIR"
else
install_dir="$HOME/.moon/bin"
else
install_dir="$MOON_INSTALL_DIR"
fi

bin_path="$install_dir/$bin"
Expand Down

0 comments on commit 553d456

Please sign in to comment.