Skip to content

Commit

Permalink
Revert "Try avoiding newlines when hashing nuon files"
Browse files Browse the repository at this point in the history
This reverts commit bb8b3c6.
  • Loading branch information
kubouch committed May 4, 2024
1 parent abba5c3 commit 4c80dbc
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions nupm/utils/misc.nu
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,7 @@ export def hash-fn []: string -> string {

# Compute a hash of file contents
export def hash-file []: path -> string {
let p = $in

if ($p | path parse).extension == "nuon" {
open $p | to nuon | hash-fn
} else {
open $p --raw | hash-fn
}
open --raw | hash-fn
}

# Extensions to the `url ...` commands
Expand Down

0 comments on commit 4c80dbc

Please sign in to comment.