Skip to content

Commit

Permalink
Fix release scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
hustcer committed Mar 10, 2024
1 parent 61a011d commit 8d21af2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions scripts/release-pkg.nu
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ let info = if $os == 'windows-latest' {
} else {
(do -i { ./musd -b }) | str join
}
if ($info | str trim | empty?) {
if ($info | str trim | is-empty) {
print $'(ansi r)Incompatible nu binary...(ansi reset)'
} else { $info }

Expand Down Expand Up @@ -114,14 +114,14 @@ if $os in ['ubuntu-latest', 'macos-latest'] {
7z a $archive *
print $'archive: ---> ($archive)';
let pkg = (ls -f $archive | get name)
if not ($pkg | empty?) {
if not ($pkg | is-empty) {
echo $'::set-output name=archive::($pkg | get 0)'
}
}
}

def 'cargo-build-musd' [ options: string ] {
if ($options | str trim | empty?) {
if ($options | str trim | is-empty) {
cargo rustc --bin $bin --target $target --release --features=static-link-openssl
} else {
cargo rustc --bin $bin --target $target --release --features=static-link-openssl $options
Expand Down
4 changes: 2 additions & 2 deletions scripts/release-ssl.nu
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ let info = if $os == 'windows-latest' {
} else {
(do -i { ./musd -b }) | str join
}
if ($info | str trim | empty?) {
if ($info | str trim | is-empty) {
print $'(ansi r)Incompatible nu binary...(ansi reset)'
} else { $info }

Expand Down Expand Up @@ -129,7 +129,7 @@ if $os in ['ubuntu-latest', 'macos-latest'] {
7z a $archive *
print $'archive: ---> ($archive)';
let pkg = (ls -f $archive | get name)
if not ($pkg | empty?) {
if not ($pkg | is-empty) {
echo $'::set-output name=archive::($pkg | get 0)'
}
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/release.nu
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def 'release' [
exit 1
}
let statusCheck = (git status --porcelain)
if not ($statusCheck | empty?) {
if not ($statusCheck | is-empty) {
print $'You have uncommit changes, please commit them and try `release` again!(char nl)'
exit 1
}
Expand Down

0 comments on commit 8d21af2

Please sign in to comment.