Skip to content

Commit

Permalink
Fixed commit hash not showing in full length
Browse files Browse the repository at this point in the history
  • Loading branch information
iinsertNameHere committed May 9, 2024
1 parent 87531c0 commit b0655dc
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/catnip.nim
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@ when not defined release:
import times
let t0 = epochTime()

proc cap(s: string, length: int): string =
if s.len > length:
result = s[0..length]
else:
result = s

# Help text
proc printHelp(cfg: Config) =
let mounts_len = probe.getMounts().len
Expand Down Expand Up @@ -78,7 +72,7 @@ if paramCount() > 0:

# Version Argument
if param == "-v" or param == "--version":
echo "Commit " & CURRENTCOMMIT.cap(7)
echo "Commit " & CURRENTCOMMIT
quit()

# Config Argument
Expand Down

0 comments on commit b0655dc

Please sign in to comment.