Skip to content

Commit

Permalink
fix: Unzip zip ball and override existing files without prompting on …
Browse files Browse the repository at this point in the history
…Windows (#40)
  • Loading branch information
hustcer authored Jan 21, 2025
1 parent 7b00da7 commit 0000000
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 @@ -70,7 +70,7 @@ export def 'setup moonbit' [

if (windows?) {
fetch-release $version $'moonbit-($archive).zip'
unzip -q $'moonbit-($archive).zip' -d $MOONBIT_HOME
unzip -qo $'moonbit-($archive).zip' -d $MOONBIT_HOME
rm moonbit*.zip
} else {
fetch-release $version $'moonbit-($archive).tar.gz'
Expand Down Expand Up @@ -110,7 +110,7 @@ export def 'setup moonbit' [
fetch-core $version

if (windows?) {
unzip -q core*.zip -d $MOONBIT_LIB_DIR; rm core*.zip
unzip -qo core*.zip -d $MOONBIT_LIB_DIR; rm core*.zip
} else {
tar xf core*.tar.gz --directory $MOONBIT_LIB_DIR; rm core*.tar.gz
}
Expand Down

0 comments on commit 0000000

Please sign in to comment.