Skip to content

Commit

Permalink
Merge branch 'release/0.3.2.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
proofrock committed Nov 8, 2021
2 parents 9d66c59 + 639839b commit 5d123b5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 🗃️ snapkup v0.3.2
# 🗃️ snapkup v0.3.2.1

Snapkup is a simple backup tool that takes snapshots of your filesystem (or the parts that you'll decide), storing them
efficiently and conveniently.
Expand Down
2 changes: 1 addition & 1 deletion src/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"github.com/proofrock/snapkup/util"
)

const version = "v0.3.2"
const version = "v0.3.2.1"

var (
relBkpDir = kingpin.Flag("backup-dir", "The directory to store backups into.").Required().Short('d').ExistingDir()
Expand Down
6 changes: 3 additions & 3 deletions src/util/terminal.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

func GetPassword(prompt string) string {
// Get the initial state of the terminal.
initialTermState, e1 := terminal.GetState(syscall.Stdin)
initialTermState, e1 := terminal.GetState(int(syscall.Stdin))
if e1 != nil {
panic(e1)
}
Expand All @@ -24,13 +24,13 @@ func GetPassword(prompt string) string {
signal.Notify(c, os.Interrupt, os.Kill)
go func() {
<-c
_ = terminal.Restore(syscall.Stdin, initialTermState)
_ = terminal.Restore(int(syscall.Stdin), initialTermState)
os.Exit(1)
}()

// Now get the password.
fmt.Print(prompt)
p, err := terminal.ReadPassword(syscall.Stdin)
p, err := terminal.ReadPassword(int(syscall.Stdin))
fmt.Println("")
if err != nil {
panic(err)
Expand Down

0 comments on commit 5d123b5

Please sign in to comment.