Skip to content

Commit

Permalink
fix: Fix aria2c download for local Windows machine
Browse files Browse the repository at this point in the history
  • Loading branch information
hustcer committed Nov 5, 2023
1 parent 4b29a76 commit 7fa239e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nu/moonbit.nu
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ export def 'setup moonbit' [] {
if ($DOWNLOAD_PATH | is-empty) { echo $'Unsupported Platform: ($OS_INFO)'; exit 2 }

if (windows?) {
$WINDOWS_BINS | each {|it| aria2c $'($CLI_HOST)/($DOWNLOAD_PATH)/($it)' }
$WINDOWS_BINS | each {|it| aria2c --allow-overwrite $'($CLI_HOST)/($DOWNLOAD_PATH)/($it)' }
} else {
$DEFAULT_BINS | each {|it| aria2c $'($CLI_HOST)/($DOWNLOAD_PATH)/($it)'; chmod +x $it }
$DEFAULT_BINS | each {|it| aria2c --allow-overwrite $'($CLI_HOST)/($DOWNLOAD_PATH)/($it)'; chmod +x $it }
}

echo 'OS Info:'; echo $nu.os-info; hr-line
Expand Down

0 comments on commit 7fa239e

Please sign in to comment.