Skip to content

Commit

Permalink
Merge branch 'main' of github.com:milaboratory/small-binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
DenKoren committed Dec 18, 2024
2 parents 7f6da82 + 589816e commit 03bf64d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions sleep/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @platforma-open/milaboratories.software-small-binaries.sleep

## 1.0.2

### Patch Changes

- 46b5bbb: Formal update of sleep to trigger CI

## 1.0.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion sleep/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@platforma-open/milaboratories.software-small-binaries.sleep",
"private": true,
"version": "1.0.1",
"version": "1.0.2",
"description": "Cross-platform sleep",
"scripts": {
"cleanup": "rm -rf ./pkg-*.tgz && rm -rf ./build/ && rm -rf ./dist/",
Expand Down
8 changes: 4 additions & 4 deletions sleep/sleep.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ import (

func main() {
if len(os.Args) != 2 {
fmt.Fprintf(os.Stderr, "Usage: %s <seconds>\n", os.Args[0])
os.Exit(1)
fmt.Fprintf(os.Stderr, "Usage: %s <seconds>\n", os.Args[0])
os.Exit(1)
}

seconds, err := strconv.Atoi(os.Args[1])
if err != nil {
fmt.Fprintf(os.Stderr, "Invalid number of seconds: %s\n", err)
os.Exit(1)
fmt.Fprintf(os.Stderr, "Invalid number of seconds: %s\n", err)
os.Exit(1)
}

time.Sleep(time.Duration(seconds) * time.Second)
Expand Down

0 comments on commit 03bf64d

Please sign in to comment.